summaryrefslogtreecommitdiff
path: root/index.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 /index.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 'index.php')
-rw-r--r--index.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.php b/index.php
index 69a44ba..b6704ed 100644
--- a/index.php
+++ b/index.php
@@ -16,8 +16,7 @@ $gBitSystem->verifyPermission( 'p_articles_read' );
if( !empty( $_REQUEST['article_id'] ) ) {
$param = array ( 'article_id' => ( int )$_REQUEST['article_id'] );
- header( "Location: ".BitArticle::getDisplayUrlFromHash( $param ) );
- die;
+ bit_redirect( BitArticle::getDisplayUrlFromHash( $param ) );
}
// Display the template