From 9f3cb07ad3776f9a8449cf13d88ad2c4f7674b58 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 4 Feb 2006 19:04:35 +0000 Subject: remove more outdated code: $section and other old template assignments --- print.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'print.php') diff --git a/print.php b/print.php index e891b81..e923d93 100644 --- a/print.php +++ b/print.php @@ -1,6 +1,6 @@ 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) { - $cache_info = $wikilib->get_cache_info($page); - $now = $gBitSystem->getUTCTime(); - if($cache_info['cache_timestamp']+$wiki_cache > $now) { - $pdata = $cache_info['cache']; - $gBitSmarty->assign('cached_page','y'); - } else { - $pdata = $gContent->parseData(); - $wikilib->update_cache($page,$pdata); - } + $cache_info = $wikilib->get_cache_info($page); + $now = $gBitSystem->getUTCTime(); + if($cache_info['cache_timestamp']+$wiki_cache > $now) { + $pdata = $cache_info['cache']; + $gBitSmarty->assign('cached_page','y'); + } else { + $pdata = $gContent->parseData(); + $wikilib->update_cache($page,$pdata); + } } else { - $pdata = $gContent->parseData(); + $pdata = $gContent->parseData(); } $gBitSmarty->assign_by_ref('parsed', $pdata); $gBitSmarty->assign_by_ref('last_modified', $info["last_modified"]); @@ -98,8 +98,6 @@ if ($http_domain) { // Display the Index Template $gBitSmarty->assign('print_page','y'); -$gBitSystem->display( 'bitpackage:wiki/show_page.tpl'); $gBitSmarty->assign('show_page_bar', 'n'); -$gBitSmarty->assign('print_page', 'y'); $gBitSmarty->display("bitpackage:wiki/print.tpl"); ?> -- cgit v1.3