aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_notes.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-07-19 06:26:30 -0700
committerNils Adermann <naderman@naderman.de>2012-07-19 06:26:30 -0700
commitb773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399 (patch)
treec4c4933cce8b90665beed1848e8460425a67c9b7 /phpBB/includes/mcp/mcp_notes.php
parentb176b86f111a05338ed3c74026bcf19d42ec0ee3 (diff)
parent584d49459d22ebf47239fc97ad8358a5404dacf4 (diff)
downloadforums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar
forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.gz
forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.bz2
forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.xz
forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.zip
Merge pull request #877 from Drae/feature/pagination-as-list
[feature/pagination-as-list] Render pagination within the template
Diffstat (limited to 'phpBB/includes/mcp/mcp_notes.php')
-rw-r--r--phpBB/includes/mcp/mcp_notes.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index 99dbb8d86d..bbf618ebef 100644
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -215,6 +215,9 @@ class mcp_notes
}
}
+ $base_url = $this->u_action . "&amp;$u_sort_param$keywords_param";
+ phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $log_count, $config['topics_per_page'], $start);
+
$template->assign_vars(array(
'U_POST_ACTION' => $this->u_action,
'S_CLEAR_ALLOWED' => ($auth->acl_get('a_clearlogs')) ? true : false,
@@ -225,8 +228,7 @@ class mcp_notes
'L_TITLE' => $user->lang['MCP_NOTES_USER'],
- 'PAGE_NUMBER' => on_page($log_count, $config['topics_per_page'], $start),
- 'PAGINATION' => generate_pagination($this->u_action . "&amp;$u_sort_param$keywords_param", $log_count, $config['topics_per_page'], $start),
+ 'PAGE_NUMBER' => phpbb_on_page($template, $user, $base_url, $log_count, $config['topics_per_page'], $start),
'TOTAL_REPORTS' => $user->lang('LIST_REPORTS', (int) $log_count),
'RANK_TITLE' => $rank_title,