summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2014-05-31 22:59:32 +0100
committerlsces <lester@lsces.co.uk>2014-05-31 22:59:32 +0100
commit74664b7866652ecaeb8a3e93486a5534f1a65d98 (patch)
treed86d04850b2f743327ca25d4318d16bf67bdd7ab /edit.php
parent0079eba641d5be99a992edf24bcc0767d2faee78 (diff)
downloadcontact-74664b7866652ecaeb8a3e93486a5534f1a65d98.tar.gz
contact-74664b7866652ecaeb8a3e93486a5534f1a65d98.tar.bz2
contact-74664b7866652ecaeb8a3e93486a5534f1a65d98.zip
Tidy bitredirect foldbacks
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/edit.php b/edit.php
index 07ca441..8a6a13d 100644
--- a/edit.php
+++ b/edit.php
@@ -49,15 +49,13 @@ if(isset($_REQUEST["preview"])) {
// Pro
if (isset($_REQUEST["fCancel"])) {
if( !empty( $gContent->mContentId ) ) {
- header("Location: ".$gContent->getDisplayUrl() );
+ bit_redirect( $gContent->getDisplayUrl() );
} else {
- header("Location: ".CONTACT_PKG_URL );
+ bit_redirect( CONTACT_PKG_URL );
}
- die;
} elseif (isset($_REQUEST["fSaveContact"])) {
if( $gContent->store( $_REQUEST ) ) {
- header("Location: ".$gContent->getDisplayUrl() );
- die;
+ bit_redirect( $gContent->getDisplayUrl() );
} else {
$formInfo = $_REQUEST;
$formInfo['data'] = &$_REQUEST['edit'];