diff options
| author | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:30 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:30 +0000 |
| commit | 7144420dc99a55d4e8f5b81cec6200ede8c200b2 (patch) | |
| tree | 4f6e2fc33f2ef268d70d293cdbaf720becaab363 /edit_book.php | |
| parent | e6db2a56250bc0789190d0b22c0acc0089dedf45 (diff) | |
| download | wiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.tar.gz wiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.tar.bz2 wiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.zip | |
change display call to use a hash for display options, add display_mode to options hash
Diffstat (limited to 'edit_book.php')
| -rw-r--r-- | edit_book.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/edit_book.php b/edit_book.php index bbb02f7..9c6da36 100644 --- a/edit_book.php +++ b/edit_book.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.12 2007/11/08 21:59:36 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.13 2008/06/25 22:21:29 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: edit_book.php,v 1.12 2007/11/08 21:59:36 squareing Exp $ + * $Id: edit_book.php,v 1.13 2008/06/25 22:21:29 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -36,7 +36,7 @@ global $gStructure; if( isset($_REQUEST["createstructure"]) ) { if ((empty($_REQUEST['name']))) { $gBitSmarty->assign('msg', tra("You must specify a name.")); - $gBitSystem->display( 'error.tpl' ); + $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'edit' )); die; } @@ -60,7 +60,7 @@ if( isset($_REQUEST["createstructure"]) ) { //Cannot create a structure if a structure already exists if (!isset($structure_id)) { $gBitSmarty->assign('msg', $_REQUEST['name'] . " " . tra("page not added (Exists)")); - $gBitSystem->display( 'error.tpl' ); + $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'edit' )); die; } @@ -114,5 +114,5 @@ if( isset($_REQUEST["createstructure"]) ) { } $gBitSystem->setBrowserTitle( !empty($gStructure) ? 'Edit Wiki Book:'.$gStructure->mInfo["title"] : NULL ); // Display the template -$gBitSystem->display( $mid ); +$gBitSystem->display( $mid , NULL, array( 'display_mode' => 'edit' )); ?> |
