diff options
| author | lsces <lester@lsces.co.uk> | 2014-05-31 21:23:49 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-05-31 21:23:49 +0100 |
| commit | e183de9c4d97e670b850929c7ff1152fab01d6d1 (patch) | |
| tree | 5d201181d0058f961ed30d7566b8ea0ea2a92c0d /index.php | |
| parent | 4753d5552aa9cb66c3cdc10387d2a490d41f7a42 (diff) | |
| download | articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.tar.gz articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.tar.bz2 articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.zip | |
PSR trial tidyup. Drop trailing ?> and tidy legacy bracing.
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -5,7 +5,7 @@ // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. // Initialization -require_once( '../kernel/setup_inc.php' ); +require_once '../kernel/setup_inc.php'; // Is package installed and enabled $gBitSystem->verifyPackage( 'articles' ); @@ -14,8 +14,8 @@ require_once( ARTICLES_PKG_PATH.'BitArticle.php' ); // Now check permissions to access this page $gBitSystem->verifyPermission( 'p_articles_read' ); -if( !empty( $_REQUEST['article_id'] ) ) { - $param = array ( 'article_id' => ( int )$_REQUEST['article_id'] ); +if ( !empty( $_REQUEST['article_id'] ) ) { + $param = array ( 'article_id' => (int) $_REQUEST['article_id'] ); bit_redirect( BitArticle::getDisplayUrlFromHash( $param ) ); } @@ -25,4 +25,3 @@ $gBitSmarty->assign_by_ref( 'gDefaultCenter', $gDefaultCenter ); // Display the template $gBitSystem->display( 'bitpackage:kernel/dynamic.tpl', tra( 'Articles' ) , array( 'display_mode' => 'display' )); -?> |
