diff options
| author | lsces <lester@lsces.co.uk> | 2012-08-08 16:25:49 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-08-08 16:25:49 +0100 |
| commit | f2111ae9d6aeb30c9403d1b25228be62812bc97c (patch) | |
| tree | 88fde7263a017656c8a49402f47480d3c8055d7a /edit.php | |
| parent | 5f3d88cdb36cd7d80f291170ac7f69ce8bc1c155 (diff) | |
| download | articles-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.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } } |
