summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-08-06 15:12:43 +0100
committerlsces <lester@lsces.co.uk>2012-08-06 15:12:43 +0100
commit5cb254fbb1af3ae0372fc79c231088a31e397e38 (patch)
tree5657fe8e3e37261c856ed46ee2b7f3f7f57b8f36 /edit.php
parent71b81ea184bc96e6615dc346e88aad80f5cdc063 (diff)
downloadcontact-5cb254fbb1af3ae0372fc79c231088a31e397e38.tar.gz
contact-5cb254fbb1af3ae0372fc79c231088a31e397e38.tar.bz2
contact-5cb254fbb1af3ae0372fc79c231088a31e397e38.zip
Bring in line with getDisplayUrl changes
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/edit.php b/edit.php
index 003d4c8..07ca441 100644
--- a/edit.php
+++ b/edit.php
@@ -49,14 +49,15 @@ if(isset($_REQUEST["preview"])) {
// Pro
if (isset($_REQUEST["fCancel"])) {
if( !empty( $gContent->mContentId ) ) {
- header("Location: ".$gContent->getContactUrl() );
+ header("Location: ".$gContent->getDisplayUrl() );
} else {
header("Location: ".CONTACT_PKG_URL );
}
die;
} elseif (isset($_REQUEST["fSaveContact"])) {
if( $gContent->store( $_REQUEST ) ) {
- header("Location: ".$gContent->getContactUrl() );
+ header("Location: ".$gContent->getDisplayUrl() );
+ die;
} else {
$formInfo = $_REQUEST;
$formInfo['data'] = &$_REQUEST['edit'];