From 255b869552baf4a221c5739b03e2783b90a278e3 Mon Sep 17 00:00:00 2001 From: lsces Date: Sat, 31 May 2014 21:27:21 +0100 Subject: PSR trial tidyup. Drop trailing ?> and tidy legacy bracing. --- templates/center_list_articles.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'templates/center_list_articles.php') diff --git a/templates/center_list_articles.php b/templates/center_list_articles.php index 1f6c578..cb68b87 100644 --- a/templates/center_list_articles.php +++ b/templates/center_list_articles.php @@ -1,7 +1,7 @@ hasPermission( 'p_articles_admin' ) ) { +if ( $gBitUser->hasPermission( 'p_articles_admin' ) ) { $_REQUEST['status_id'] = !empty( $_REQUEST['status_id'] ) ? $_REQUEST['status_id'] : ARTICLE_STATUS_APPROVED; $_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getConfig( 'articles_max_list' ); $_REQUEST['topic_id'] = !empty( $_REQUEST['topic_id'] ) ? $_REQUEST['topic_id'] : NULL; @@ -26,7 +26,7 @@ if ( !empty( $_REQUEST['topic'] ) ) { $_template->tpl_vars['topic'] = new Smarty_variable( $_REQUEST['topic'] ); } -if( !empty( $moduleParams )) { +if ( !empty( $moduleParams )) { $listHash = array_merge( $_REQUEST, $moduleParams['module_params'] ); $listHash['max_records'] = $module_rows; //$listHash['parse_data'] = TRUE; @@ -46,9 +46,8 @@ $_template->tpl_vars['listInfo'] = new Smarty_variable( $listHash['listInfo'] ); $_template->tpl_vars['showDescriptionsOnly'] = new Smarty_variable( TRUE ); // display submissions if we have the perm to approve them -if( $gBitUser->hasPermission( 'p_articles_approve_submission' ) || ( $gBitSystem->isFeatureActive( 'articles_auto_approve' ) && $gBitUser->isRegistered() )) { +if ( $gBitUser->hasPermission( 'p_articles_approve_submission' ) || ( $gBitSystem->isFeatureActive( 'articles_auto_approve' ) && $gBitUser->isRegistered() )) { $listHash = array( 'status_id' => ARTICLE_STATUS_PENDING ); $submissions = $gContent->getList( $listHash ); $_template->tpl_vars['submissions'] = new Smarty_variable( $submissions ); } -?> -- cgit v1.3