diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-12-18 00:33:01 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-12-18 18:39:01 +0100 |
commit | edd183b53a5941711befb66f85efb8756dec431d (patch) | |
tree | c38aaf9c5fbd34545a1d969721102aef76725274 /phpBB/includes/mcp/mcp_queue.php | |
parent | 86525894696d0b93991c64aab0a1760305f33638 (diff) | |
download | forums-edd183b53a5941711befb66f85efb8756dec431d.tar forums-edd183b53a5941711befb66f85efb8756dec431d.tar.gz forums-edd183b53a5941711befb66f85efb8756dec431d.tar.bz2 forums-edd183b53a5941711befb66f85efb8756dec431d.tar.xz forums-edd183b53a5941711befb66f85efb8756dec431d.zip |
[ticket/11849] Update more MCP calls to pagination class
PHPBB3-11849
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index db461d07fa..d0b41fce43 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -337,6 +337,7 @@ class mcp_queue $topic_id = $request->variable('t', 0); $forum_info = array(); + $pagination = $phpbb_container->get('pagination'); if ($topic_id) { @@ -532,7 +533,7 @@ class mcp_queue unset($rowset, $forum_names); $base_url = $this->u_action . "&f=$forum_id&st=$sort_days&sk=$sort_key&sd=$sort_dir"; - phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start); + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start); // Now display the page $template->assign_vars(array( @@ -546,7 +547,7 @@ class mcp_queue 'S_TOPICS' => $is_topics, 'S_RESTORE' => $is_restore, - 'PAGE_NUMBER' => phpbb_on_page($template, $user, $base_url, $total, $config['topics_per_page'], $start), + 'PAGE_NUMBER' => $pagination->on_page($base_url, $total, $config['topics_per_page'], $start), 'TOPIC_ID' => $topic_id, 'TOTAL' => $user->lang(((!$is_topics) ? 'VIEW_TOPIC_POSTS' : 'VIEW_FORUM_TOPICS'), (int) $total), )); |