summaryrefslogtreecommitdiff
path: root/lookup_page_inc.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2009-02-21 16:34:18 +0000
committerLester Caine <lester@lsces.co.uk>2009-02-21 16:34:18 +0000
commitd95958d5d06aa79108249c4aa52e9848c51c8c20 (patch)
tree92de403b717a00d5d0ced7ce11b64606f0cf20a8 /lookup_page_inc.php
parent322ff527f5425e4dca3e03f0d2181a7e08a88908 (diff)
downloadwiki-d95958d5d06aa79108249c4aa52e9848c51c8c20.tar.gz
wiki-d95958d5d06aa79108249c4aa52e9848c51c8c20.tar.bz2
wiki-d95958d5d06aa79108249c4aa52e9848c51c8c20.zip
Disable parsing of page when loading it to edit. preview will parse the page, but if a parsing error prevents the page from loading, then we still need to be able to access the page to edit it.
Diffstat (limited to 'lookup_page_inc.php')
-rw-r--r--lookup_page_inc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lookup_page_inc.php b/lookup_page_inc.php
index 618f6c0..632a28a 100644
--- a/lookup_page_inc.php
+++ b/lookup_page_inc.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.27 2008/12/18 22:06:29 pppspoonman Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.28 2009/02/21 16:34:18 lsces 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: lookup_page_inc.php,v 1.27 2008/12/18 22:06:29 pppspoonman Exp $
+ * $Id: lookup_page_inc.php,v 1.28 2009/02/21 16:34:18 lsces Exp $
* @package wiki
* @subpackage functions
*/
@@ -57,7 +57,9 @@ if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gCo
$gBitSmarty->assign('page', $loadPage);//to have the create page link in the error
}
}
- if( !$gContent->load() && $loadPage ) {
+
+ $parse = ( !isset( $lookupHash['parse'] ) or $lookupHash['parse'] ) ? true : false;
+ if( $gContent->load( $parse ) && $loadPage ) {
$gContent->mInfo['title'] = $loadPage;
}
}