summaryrefslogtreecommitdiff
path: root/display_bitpage_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-01-27 23:01:25 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-01-27 23:01:25 +0000
commit1af970968bc603307f42054c136d892b0f9173cb (patch)
tree27a8bf449748e06dc68c76cbb79f4418d299a317 /display_bitpage_inc.php
parent45f43e05103232d9b4888a37d5bf70edc8b6c216 (diff)
downloadwiki-1af970968bc603307f42054c136d892b0f9173cb.tar.gz
wiki-1af970968bc603307f42054c136d892b0f9173cb.tar.bz2
wiki-1af970968bc603307f42054c136d892b0f9173cb.zip
replace old code with new version of the code - we need to stop babysitting outdated code
Diffstat (limited to 'display_bitpage_inc.php')
-rw-r--r--display_bitpage_inc.php10
1 files changed, 5 insertions, 5 deletions
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 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/display_bitpage_inc.php,v 1.8 2006/01/27 21:57:53 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/display_bitpage_inc.php,v 1.9 2006/01/27 23:01:24 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: display_bitpage_inc.php,v 1.8 2006/01/27 21:57:53 squareing Exp $
+ * $Id: display_bitpage_inc.php,v 1.9 2006/01/27 23:01:24 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -130,7 +130,7 @@ if(isset($_REQUEST["undo"])) {
}
}
}
-if ($wiki_uses_slides == 'y') {
+if ($gBitSystem->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 {