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 /index.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 'index.php')
| -rw-r--r-- | index.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |
