summaryrefslogtreecommitdiff
path: root/edit_pigeonholes.php
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-25 10:46:28 -0400
committerspiderr <spider@viovio.com>2012-05-25 10:46:28 -0400
commit6faa92d6cfe9404e0aeeb7cf9eb3e08ecc58af2c (patch)
treeaa80436d325e8da100d576d1e0266f011010e18d /edit_pigeonholes.php
parent5f0047d8ffc235241d33de70a3d5929d538b685f (diff)
downloadpigeonholes-6faa92d6cfe9404e0aeeb7cf9eb3e08ecc58af2c.tar.gz
pigeonholes-6faa92d6cfe9404e0aeeb7cf9eb3e08ecc58af2c.tar.bz2
pigeonholes-6faa92d6cfe9404e0aeeb7cf9eb3e08ecc58af2c.zip
replace PHP_SELF with SCRIPT_NAME
Diffstat (limited to 'edit_pigeonholes.php')
-rw-r--r--edit_pigeonholes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit_pigeonholes.php b/edit_pigeonholes.php
index 0d2a679..d489f4f 100644
--- a/edit_pigeonholes.php
+++ b/edit_pigeonholes.php
@@ -50,7 +50,7 @@ if( !empty( $_REQUEST['pigeonhole_store'] ) ) {
$pigeonStore = new Pigeonholes( NULL, !empty( $_REQUEST['pigeonhole_content_id'] ) ? $_REQUEST['pigeonhole_content_id'] : NULL );
$pigeonStore->load();
if( $pigeonStore->store( $_REQUEST['pigeonhole'] )) {
- header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$pigeonStore->mStructureId.( !empty( $_REQUEST['action'] ) ? '&action='.$_REQUEST['action'] : '' )."&success=".urlencode( tra( "The category was successfully stored" ) ) );
+ header( "Location: ".$_SERVER['SCRIPT_NAME'].'?structure_id='.$pigeonStore->mStructureId.( !empty( $_REQUEST['action'] ) ? '&action='.$_REQUEST['action'] : '' )."&success=".urlencode( tra( "The category was successfully stored" ) ) );
} else {
$feedback['error'] = $gContent->mErrors;
}
@@ -70,7 +70,7 @@ if( !empty( $_REQUEST['action'] ) || isset( $_REQUEST["confirm"] ) ) {
if( $_REQUEST["action"] == 'remove' || isset( $_REQUEST["confirm"] ) ) {
if( isset( $_REQUEST["confirm"] ) ) {
if( $gContent->expunge( $_REQUEST["structure_id"] ) ) {
- bit_redirect( $_SERVER['PHP_SELF'].'?structure_id='.$gContent->mInfo["parent_id"] );
+ bit_redirect( $_SERVER['SCRIPT_NAME'].'?structure_id='.$gContent->mInfo["parent_id"] );
} else {
$feedback['error'] = $gContent->mErrors;
}