summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-08-08 16:04:51 +0100
committerlsces <lester@lsces.co.uk>2012-08-08 16:04:51 +0100
commit5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155 (patch)
treed9fcb1b857fa0732a931ba3ef745de8e2ff62ac4 /edit.php
parent6a6107f47020b443cb06817085a8f545d65622d2 (diff)
downloadarticles-5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155.tar.gz
articles-5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155.tar.bz2
articles-5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155.zip
Should we be killing off the current process when a page redirect is actioned?
Edit's were saving, but not switching to the read view of the page.
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/edit.php b/edit.php
index 0a1d6e8..03ff487 100644
--- a/edit.php
+++ b/edit.php
@@ -60,13 +60,13 @@ if( !empty( $_REQUEST['preview'] ) ) {
if( !empty( $_REQUEST['save'] ) ) {
if( empty( $_REQUEST['rating'] ) ) $_REQUEST['rating'] = 0;
if( empty( $_REQUEST['topic_id'] ) ) $_REQUEST['topic_id'] = 0;
-
if( $gContent->store( $_REQUEST ) ) {
if( isset ($gContent->mInfo['status_id']) and $gContent->mInfo['status_id'] == ARTICLE_STATUS_PENDING ) {
- header ( "location: " . ARTICLES_PKG_URL. "index.php?feedback=".urlencode( tra( 'Your article has been submitted and is awaiting approval.' ) ) );
+ header ( "Location: " . ARTICLES_PKG_URL. "index.php?feedback=".urlencode( tra( 'Your article has been submitted and is awaiting approval.' ) ) );
} else {
- header ( "location: " . ARTICLES_PKG_URL . ( ($gBitSystem->isFeatureActive('pretty_urls_extended') || $gBitSystem->isFeatureActive('pretty_urls')) ? $gContent->mArticleId : "read.php?article_id=" . $gContent->mArticleId ) );
+ header ( "Location: " . ARTICLES_PKG_URL . ( ($gBitSystem->isFeatureActive('pretty_urls_extended') || $gBitSystem->isFeatureActive('pretty_urls')) ? $gContent->mArticleId : "read.php?article_id=" . $gContent->mArticleId ) );
}
+ die;
}
}