summaryrefslogtreecommitdiff
path: root/edit_book.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-07-25 20:02:59 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-07-25 20:02:59 +0000
commitcb5983c245afe264915abf248d87fb7a6498751c (patch)
tree6a36bf43ffa8cebbc2bc8a3b0feb6612d52e2f71 /edit_book.php
parent929d74d1e2ce698eedba75649d0979c7179463f2 (diff)
downloadwiki-cb5983c245afe264915abf248d87fb7a6498751c.tar.gz
wiki-cb5983c245afe264915abf248d87fb7a6498751c.tar.bz2
wiki-cb5983c245afe264915abf248d87fb7a6498751c.zip
Merge recent changes R1 1.0.2 beta --> HEAD
Diffstat (limited to 'edit_book.php')
-rw-r--r--edit_book.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/edit_book.php b/edit_book.php
index f13538c..a786db5 100644
--- a/edit_book.php
+++ b/edit_book.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.2 2005/06/28 07:46:27 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.3 2005/07/25 20:02:57 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: edit_book.php,v 1.2 2005/06/28 07:46:27 spiderr Exp $
+ * $Id: edit_book.php,v 1.3 2005/07/25 20:02:57 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -98,6 +98,10 @@ if( isset($_REQUEST["createstructure"]) ) {
header( "location: ".WIKI_PKG_URL."edit_book.php?structure_id=".$structure_id );
}
} elseif( !empty( $_REQUEST["structure_id"] ) ) {
+ // Get all wiki pages for the select box
+ $_REQUEST['content_type'] = !isset( $_REQUEST['content_type'] ) ? 'bitpage' : $_REQUEST['content_type'];
+ // verify the book permission on structure load
+ $verifyStructurePermission = 'bit_p_admin_books';
$mid = 'bitpackage:wiki/edit_book.tpl';
include_once( LIBERTY_PKG_PATH.'edit_structure_inc.php');
} else {