diff options
| author | Christian Fowler <spider@viovio.com> | 2006-02-08 20:17:25 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-02-08 20:17:25 +0000 |
| commit | 8a7a9d420d03424f2a69d6e93f44cd6213889890 (patch) | |
| tree | 7f7867b6eedf3a100161f8dec1b1227fb35d008a /lookup_page_inc.php | |
| parent | fbf90920e1a0f8d6372bcb57f40109995af46c6b (diff) | |
| download | wiki-8a7a9d420d03424f2a69d6e93f44cd6213889890.tar.gz wiki-8a7a9d420d03424f2a69d6e93f44cd6213889890.tar.bz2 wiki-8a7a9d420d03424f2a69d6e93f44cd6213889890.zip | |
fix lookup page for defined gCOntent that is not BitPage
Diffstat (limited to 'lookup_page_inc.php')
| -rw-r--r-- | lookup_page_inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lookup_page_inc.php b/lookup_page_inc.php index 113638c..e1c3f94 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.10 2006/02/07 01:19:19 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.11 2006/02/08 20:17:25 spiderr 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.10 2006/02/07 01:19:19 spiderr Exp $ + * $Id: lookup_page_inc.php,v 1.11 2006/02/08 20:17:25 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -22,7 +22,7 @@ include_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); // if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up. - if( empty( $gContent ) || !is_object( $gContent ) ) { + if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gContent ) ) != 'bitpage' ) { $gContent = new BitPage( @BitBase::verifyId( $_REQUEST['page_id'] ) ? $_REQUEST['page_id'] : NULL, @BitBase::verifyId( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL ); $loadPage = (!empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : NULL); |
