diff options
| author | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-11-17 21:57:05 +0000 |
|---|---|---|
| committer | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-11-17 21:57:05 +0000 |
| commit | f17b75830065fae0794efa99a3cac5f3d9173657 (patch) | |
| tree | 7fed2555a5e2d62d1dbeb72ec0c349b238280151 /edit_book.php | |
| parent | f6584b853fcf6dd79b03095a7a4465e433ff4633 (diff) | |
| download | wiki-f17b75830065fae0794efa99a3cac5f3d9173657.tar.gz wiki-f17b75830065fae0794efa99a3cac5f3d9173657.tar.bz2 wiki-f17b75830065fae0794efa99a3cac5f3d9173657.zip | |
Fix for 1889113 - cannot create WikiBook. Provide nice information about error cause. Capitalize create new book button.
Diffstat (limited to 'edit_book.php')
| -rw-r--r-- | edit_book.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/edit_book.php b/edit_book.php index 5bb010f..7d06e81 100644 --- a/edit_book.php +++ b/edit_book.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.16 2008/10/20 21:40:12 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.17 2008/11/17 21:57:05 pppspoonman 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.16 2008/10/20 21:40:12 spiderr Exp $ + * $Id: edit_book.php,v 1.17 2008/11/17 21:57:05 pppspoonman Exp $ * @package wiki * @subpackage functions */ @@ -119,6 +119,11 @@ if( isset($_REQUEST["createstructure"]) ) { } } header( "location: ".WIKI_PKG_URL."edit_book.php?structure_id=".$structure_id ); + } else { + $gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); + $gBitSmarty->assign( 'name', $_REQUEST['name']); + $gBitSmarty->assign( 'chapters', $_REQUEST['chapters']); + $mid = 'bitpackage:wiki/create_book.tpl'; } } elseif( @BitBase::verifyId( $_REQUEST["structure_id"] ) && $gContent->isValid() ) { // Get all wiki pages for the select box |
