aboutsummaryrefslogtreecommitdiff
path: root/scripts/pagerev.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2010-02-20 12:11:28 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2010-02-20 12:11:28 +0000
commit3dbed59eebc76071bb5fc174de72082246dc734a (patch)
treed119185a0f33eb284350b382f450cd18523e3d50 /scripts/pagerev.php
parentfaec5ff605cf6a56358ba59e979529e8c1c392e6 (diff)
downloadpmwiki.svn-3dbed59eebc76071bb5fc174de72082246dc734a.tar.bz2
Include phpdiff.php from pagerev.php only when used
git-svn-id: svn://pmwiki.org/pmwiki/trunk@2509 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagerev.php')
-rw-r--r--scripts/pagerev.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pagerev.php b/scripts/pagerev.php
index b86fe102..54d2dc0d 100644
--- a/scripts/pagerev.php
+++ b/scripts/pagerev.php
@@ -209,5 +209,6 @@ function DiffPrepareInline($x) {
}
SDV($WordDiffFunction, 'PHPDiff'); # faster than sysdiff for many calls
-if ($WordDiffFunction == 'PHPDiff' && !function_exists('PHPDiff'))
+if (IsEnabled($EnableDiffInline, 1) && $DiffShow['source'] == 'y'
+ && $WordDiffFunction == 'PHPDiff' && !function_exists('PHPDiff'))
include_once("$FarmD/scripts/phpdiff.php");