diff options
| author | lsces <lester@lsces.co.uk> | 2014-05-31 22:59:32 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-05-31 22:59:32 +0100 |
| commit | 74664b7866652ecaeb8a3e93486a5534f1a65d98 (patch) | |
| tree | d86d04850b2f743327ca25d4318d16bf67bdd7ab /edit.php | |
| parent | 0079eba641d5be99a992edf24bcc0767d2faee78 (diff) | |
| download | contact-74664b7866652ecaeb8a3e93486a5534f1a65d98.tar.gz contact-74664b7866652ecaeb8a3e93486a5534f1a65d98.tar.bz2 contact-74664b7866652ecaeb8a3e93486a5534f1a65d98.zip | |
Tidy bitredirect foldbacks
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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']; |
