From 1af970968bc603307f42054c136d892b0f9173cb Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Fri, 27 Jan 2006 23:01:25 +0000 Subject: replace old code with new version of the code - we need to stop babysitting outdated code --- display_bitpage_inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'display_bitpage_inc.php') diff --git a/display_bitpage_inc.php b/display_bitpage_inc.php index e0a2ef3..6381fd8 100644 --- a/display_bitpage_inc.php +++ b/display_bitpage_inc.php @@ -1,6 +1,6 @@ isFeatureActive( 'wiki_uses_slides' )) { $slides = split("-=[^=]+=-",$gContent->mInfo["data"]); if(count($slides)>1) { $gBitSmarty->assign('show_slideshow','y'); @@ -162,10 +162,10 @@ $gBitSmarty->assign('cached_page','n'); if(isset($gContent->mInfo['wiki_cache']) && $gContent->mInfo['wiki_cache']>0) { $wiki_cache=$gContent->mInfo['wiki_cache']; } -if($wiki_cache>0) { +if($gBitSystem->getPreference( 'wiki_cache' ) > 0) { $cache_info = $wikilib->get_cache_info($gContent->mInfo['title']); $now = $gBitSystem->getUTCTime(); - if($cache_info['cache_timestamp']+$wiki_cache > $now) { + if( ( $cache_info['cache_timestamp'] + $gBitSystem->getPreference( 'wiki_cache' ) ) > $now) { $pdata = $cache_info['cache']; $gBitSmarty->assign('cached_page','y'); } else { -- cgit v1.3