diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-06-08 22:15:09 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-06-08 22:15:09 +0000 |
| commit | 7f6f21d26f4912093ee81eac3803eb6399542434 (patch) | |
| tree | 69401a853022e8dcad35fa953e9d357fe1215117 /content_history_inc.php | |
| parent | 749ebddb137b5335c14509d609b5e15752894704 (diff) | |
| download | liberty-7f6f21d26f4912093ee81eac3803eb6399542434.tar.gz liberty-7f6f21d26f4912093ee81eac3803eb6399542434.tar.bz2 liberty-7f6f21d26f4912093ee81eac3803eb6399542434.zip | |
Change require to @include_once
Diffstat (limited to 'content_history_inc.php')
| -rw-r--r-- | content_history_inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content_history_inc.php b/content_history_inc.php index cacebbb..ae1d253 100644 --- a/content_history_inc.php +++ b/content_history_inc.php @@ -34,8 +34,7 @@ if (isset($_REQUEST["delete"]) && isset($_REQUEST["hist"])) { * run 'pear install Text_Diff' to install the library, */ if( $gBitSystem->isFeatureActive('liberty_inline_diff') ) { - require_once('PEAR.php'); - if( @include_once( 'Text/Diff.php' ) ) { + if( @include_once( 'PEAR.php') && @@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(); |
