summaryrefslogtreecommitdiff
path: root/edit_structure_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-09-05 08:54:57 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-09-05 08:54:57 +0000
commitceac2bdb704c1fd780d4d57dd5d9bc007e5e6d95 (patch)
tree38f9c0a1320408847609c0df78bc62c4b69e34e5 /edit_structure_inc.php
parent79c5034d163e90f068d6919796d6d27bc79124d7 (diff)
downloadliberty-ceac2bdb704c1fd780d4d57dd5d9bc007e5e6d95.tar.gz
liberty-ceac2bdb704c1fd780d4d57dd5d9bc007e5e6d95.tar.bz2
liberty-ceac2bdb704c1fd780d4d57dd5d9bc007e5e6d95.zip
make delete process more specific that other package can make better use of it.
Diffstat (limited to 'edit_structure_inc.php')
-rw-r--r--edit_structure_inc.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/edit_structure_inc.php b/edit_structure_inc.php
index 5f58e36..7429030 100644
--- a/edit_structure_inc.php
+++ b/edit_structure_inc.php
@@ -3,7 +3,7 @@
* edit_structure_inc
*
* @author Christian Fowler>
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
* @package liberty
* @subpackage functions
*/
@@ -68,9 +68,8 @@ if( !@BitBase::verifyId( $_REQUEST["structure_id"] ) ) {
}
}
- if( ( isset( $_REQUEST["action"] ) && ( $_REQUEST["action"] == 'remove' ) ) || isset( $_REQUEST["confirm"] ) ) {
-
- if( isset( $_REQUEST["confirm"] ) ) {
+ if( ( isset( $_REQUEST["action"] ) && ( $_REQUEST["action"] == 'remove' ) ) || !empty( $_REQUEST["confirm"] ) ) {
+ if( $_REQUEST["action"] == 'remove' && !empty( $_REQUEST["confirm"] ) ) {
if( $gStructure->s_remove_page( $_REQUEST["structure_id"], false ) ) {
header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$gStructure->mInfo["parent_id"] );
die;
@@ -78,7 +77,9 @@ if( !@BitBase::verifyId( $_REQUEST["structure_id"] ) ) {
vd( $gStructure->mErrors );
}
}
+
$gBitSystem->setBrowserTitle( 'Confirm removal of '.$gContent->getTitle() );
+ $formHash['action'] = 'remove';
$formHash['remove'] = TRUE;
$formHash['structure_id'] = $_REQUEST['structure_id'];
$msgHash = array(