diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:56:09 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:56:09 +0000 |
commit | b27add94f8eb36d5e740afadf5306c48873736f9 (patch) | |
tree | c6cfecef18aea66c956a8a36606014ec483b2ec4 /phpBB/modules/acp/acp_reasons.php | |
parent | 84f795e9fbd172924280593d575bf4587c9b40e5 (diff) | |
download | forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.gz forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.bz2 forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.xz forums-b27add94f8eb36d5e740afadf5306c48873736f9.zip |
$template to phpbb::$template
git-svn-id: file:///svn/phpbb/trunk@9337 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/modules/acp/acp_reasons.php')
-rw-r--r-- | phpBB/modules/acp/acp_reasons.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/phpBB/modules/acp/acp_reasons.php b/phpBB/modules/acp/acp_reasons.php index 81484abd95..b8c18220ef 100644 --- a/phpBB/modules/acp/acp_reasons.php +++ b/phpBB/modules/acp/acp_reasons.php @@ -164,7 +164,7 @@ class acp_reasons $translated = true; } - $template->assign_vars(array( + phpbb::$template->assign_vars(array( 'L_TITLE' => phpbb::$user->lang['REASON_' . $l_title], 'U_ACTION' => $this->u_action . "&id=$reason_id&action=$action", 'U_BACK' => $this->u_action, @@ -180,8 +180,7 @@ class acp_reasons 'S_EDIT_REASON' => true, 'S_TRANSLATED' => $translated, 'S_ERROR' => (sizeof($error)) ? true : false, - ) - ); + )); return; break; @@ -282,10 +281,9 @@ class acp_reasons } phpbb::$db->sql_freeresult($result); - $template->assign_vars(array( + phpbb::$template->assign_vars(array( 'U_ACTION' => $this->u_action, - ) - ); + )); // Reason count $sql = 'SELECT reason_id, COUNT(reason_id) AS reason_count @@ -319,7 +317,7 @@ class acp_reasons $translated = true; } - $template->assign_block_vars('reasons', array( + phpbb::$template->assign_block_vars('reasons', array( 'REASON_TITLE' => $row['reason_title'], 'REASON_DESCRIPTION' => $row['reason_description'], 'REASON_COUNT' => (isset($reason_count[$row['reason_id']])) ? $reason_count[$row['reason_id']] : 0, @@ -330,8 +328,8 @@ class acp_reasons 'U_EDIT' => $this->u_action . '&action=edit&id=' . $row['reason_id'], 'U_DELETE' => (!$other_reason) ? $this->u_action . '&action=delete&id=' . $row['reason_id'] : '', 'U_MOVE_UP' => $this->u_action . '&action=move_up&order=' . $row['reason_order'], - 'U_MOVE_DOWN' => $this->u_action . '&action=move_down&order=' . $row['reason_order']) - ); + 'U_MOVE_DOWN' => $this->u_action . '&action=move_down&order=' . $row['reason_order'], + )); } phpbb::$db->sql_freeresult($result); } |