summaryrefslogtreecommitdiff
path: root/content_history_inc.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-06-08 22:03:03 +0000
committerLester Caine <lester@lsces.co.uk>2007-06-08 22:03:03 +0000
commit749ebddb137b5335c14509d609b5e15752894704 (patch)
tree57dbb1c8da89674f84a0714d5e4f4ba330cdac14 /content_history_inc.php
parenta6a99024a8d6b6a921e5c5d68e77d24fc2f31235 (diff)
downloadliberty-749ebddb137b5335c14509d609b5e15752894704.tar.gz
liberty-749ebddb137b5335c14509d609b5e15752894704.tar.bz2
liberty-749ebddb137b5335c14509d609b5e15752894704.zip
Move PEAR.php inside liberty_inline_diff test. This needs more work and while I know people don't want to include these libraries with bitweaver HAVING to download PEAR is even worse!
Diffstat (limited to 'content_history_inc.php')
-rw-r--r--content_history_inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/content_history_inc.php b/content_history_inc.php
index 45d397a..cacebbb 100644
--- a/content_history_inc.php
+++ b/content_history_inc.php
@@ -33,14 +33,14 @@ if (isset($_REQUEST["delete"]) && isset($_REQUEST["hist"])) {
/**
* run 'pear install Text_Diff' to install the library,
*/
- require_once('PEAR.php');
-
- if( $gBitSystem->isFeatureActive('liberty_inline_diff') &&
- @include_once( 'Text/Diff.php' ) ) {
- include_once( 'Text/Diff/Renderer/inline.php' );
- $diff = &new Text_Diff($from_lines,$to_lines);
- $renderer = &new Text_Diff_Renderer_inline();
- $html = $renderer->render($diff);
+ if( $gBitSystem->isFeatureActive('liberty_inline_diff') ) {
+ require_once('PEAR.php');
+ if( @include_once( 'Text/Diff.php' ) ) {
+ include_once( 'Text/Diff/Renderer/inline.php' );
+ $diff = &new Text_Diff($from_lines,$to_lines);
+ $renderer = &new Text_Diff_Renderer_inline();
+ $html = $renderer->render($diff);
+ }
}
else {
include_once( UTIL_PKG_PATH.'diff.php');