diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-17 14:59:33 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-17 14:59:33 +0000 |
commit | c0caf7652fb699ec38488df6f52f354534dd22d1 (patch) | |
tree | 0f3673f0b38e905a95773b8b4b3b878139cc991e /phpBB/includes/mcp/mcp_queue.php | |
parent | 929fa966708a022ec329e015f89b78c7894e7ff6 (diff) | |
download | forums-c0caf7652fb699ec38488df6f52f354534dd22d1.tar forums-c0caf7652fb699ec38488df6f52f354534dd22d1.tar.gz forums-c0caf7652fb699ec38488df6f52f354534dd22d1.tar.bz2 forums-c0caf7652fb699ec38488df6f52f354534dd22d1.tar.xz forums-c0caf7652fb699ec38488df6f52f354534dd22d1.zip |
Fixing some tiny bugs...
- correctly close span tags within code=php
git-svn-id: file:///svn/phpbb/trunk@7619 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 05f143a9c3..d5b4f8d422 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -173,6 +173,8 @@ class mcp_queue case 'unapproved_topics': case 'unapproved_posts': + $user->add_lang(array('viewtopic', 'viewforum')); + $topic_id = request_var('t', 0); $forum_info = array(); @@ -385,8 +387,8 @@ class mcp_queue 'PAGINATION' => generate_pagination($this->u_action . "&f=$forum_id&st=$sort_days&sk=$sort_key&sd=$sort_dir", $total, $config['topics_per_page'], $start), 'PAGE_NUMBER' => on_page($total, $config['topics_per_page'], $start), 'TOPIC_ID' => $topic_id, - 'TOTAL' => $total) - ); + 'TOTAL' => ($total == 1) ? (($mode == 'unapproved_posts') ? $user->lang['VIEW_TOPIC_POST'] : $user->lang['VIEW_FORUM_TOPIC']) : sprintf((($mode == 'unapproved_posts') ? $user->lang['VIEW_TOPIC_POSTS'] : $user->lang['VIEW_FORUM_TOPICS']), $total), + )); $this->tpl_name = 'mcp_queue'; break; |