aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_topic.php
diff options
context:
space:
mode:
authorDrae <paul@starstreak.net>2012-07-08 21:07:28 +0100
committerDrae <paul@starstreak.net>2012-07-18 14:32:18 +0100
commit27d8aef528460e87efc90bc4fffc82c0d1fa87d9 (patch)
tree91628c158d80d76bac305a9933ec8b74b5336b96 /phpBB/includes/mcp/mcp_topic.php
parentcf4d6e926dd83d61073ac355cdaf7778a18dcbf8 (diff)
downloadforums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.gz
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.bz2
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.xz
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.zip
[feature/pagination-as-list] Updates for nils comments
Re-remove deprecated functions, change on_page to phpbb_on_page, add null returns, remove globals and pass as params. PHPBB3-10968
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index d8a66f9a04..a4a8b49530 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -309,7 +309,7 @@ function mcp_topic_view($id, $mode, $action)
$base_url = append_sid("{$phpbb_root_path}mcp.$phpEx", "i=$id&amp;t={$topic_info['topic_id']}&amp;mode=$mode&amp;action=$action&amp;to_topic_id=$to_topic_id&amp;posts_per_page=$posts_per_page&amp;st=$sort_days&amp;sk=$sort_key&amp;sd=$sort_dir");
if ($posts_per_page)
{
- phpbb_generate_template_pagination($base_url, 'pagination', $total, $posts_per_page, $start);
+ phpbb_generate_template_pagination($template, $base_url, 'pagination', $total, $posts_per_page, $start);
}
$template->assign_vars(array(
@@ -350,7 +350,7 @@ function mcp_topic_view($id, $mode, $action)
'RETURN_TOPIC' => sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f={$topic_info['forum_id']}&amp;t={$topic_info['topic_id']}&amp;start=$start") . '">', '</a>'),
'RETURN_FORUM' => sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", "f={$topic_info['forum_id']}&amp;start=$start") . '">', '</a>'),
- 'PAGE_NUMBER' => on_page($base_url, $total, $posts_per_page, $start),
+ 'PAGE_NUMBER' => phpbb_on_page($template, $user, $base_url, $total, $posts_per_page, $start),
'TOTAL_POSTS' => $user->lang('VIEW_TOPIC_POSTS', (int) $total),
));
}