diff options
| author | lsces <lester@lsces.co.uk> | 2012-08-06 15:12:43 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-08-06 15:12:43 +0100 |
| commit | 5cb254fbb1af3ae0372fc79c231088a31e397e38 (patch) | |
| tree | 5657fe8e3e37261c856ed46ee2b7f3f7f57b8f36 /edit.php | |
| parent | 71b81ea184bc96e6615dc346e88aad80f5cdc063 (diff) | |
| download | contact-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.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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']; |
