summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-08-08 16:25:49 +0100
committerlsces <lester@lsces.co.uk>2012-08-08 16:25:49 +0100
commitf2111ae9d6aeb30c9403d1b25228be62812bc97c (patch)
tree88fde7263a017656c8a49402f47480d3c8055d7a /edit.php
parent5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155 (diff)
downloadarticles-f2111ae9d6aeb30c9403d1b25228be62812bc97c.tar.gz
articles-f2111ae9d6aeb30c9403d1b25228be62812bc97c.tar.bz2
articles-f2111ae9d6aeb30c9403d1b25228be62812bc97c.zip
Refactored to use bit_redirect for page switch
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/edit.php b/edit.php
index 03ff487..5eedfad 100644
--- a/edit.php
+++ b/edit.php
@@ -62,11 +62,10 @@ if( !empty( $_REQUEST['save'] ) ) {
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.' ) ) );
+ bit_redirect( 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 ) );
+ bit_redirect( ARTICLES_PKG_URL . ( ($gBitSystem->isFeatureActive('pretty_urls_extended') || $gBitSystem->isFeatureActive('pretty_urls')) ? $gContent->mArticleId : "read.php?article_id=" . $gContent->mArticleId ) );
}
- die;
}
}