diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-04 19:04:35 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-04 19:04:35 +0000 |
| commit | 9f3cb07ad3776f9a8449cf13d88ad2c4f7674b58 (patch) | |
| tree | 0cfc36104c896b23703a853c742dfd0795e4ce14 /print.php | |
| parent | 503e4e250107a7f049a9dede31da5b94b82d8f14 (diff) | |
| download | wiki-9f3cb07ad3776f9a8449cf13d88ad2c4f7674b58.tar.gz wiki-9f3cb07ad3776f9a8449cf13d88ad2c4f7674b58.tar.bz2 wiki-9f3cb07ad3776f9a8449cf13d88ad2c4f7674b58.zip | |
remove more outdated code: $section and other old template assignments
Diffstat (limited to 'print.php')
| -rw-r--r-- | print.php | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/print.php,v 1.6 2006/01/27 23:01:24 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/print.php,v 1.7 2006/02/04 19:04:35 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: print.php,v 1.6 2006/01/27 23:01:24 squareing Exp $ + * $Id: print.php,v 1.7 2006/02/04 19:04:35 squareing Exp $ * @package wiki * @subpackage functions */ @@ -66,17 +66,17 @@ if ($info["flag"] == 'L') { $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) { - $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"); ?> |
