mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/pagination-as-list] Various fixes and improvements
Extracted common template code for prosilver as per subsilver2. Various other fixups and oversight corrections, changed name of the "new" template function and re-introduced existing version. Altered on_page to compensate for removal of some templating vars from pagination routine. PHPBB3-10968
This commit is contained in:
@@ -603,7 +603,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
$phrase_search_disabled = $search->supports_phrase_search() ? false : true;
|
||||
}
|
||||
|
||||
generate_pagination($u_search, $total_match_count, $per_page, $start);
|
||||
generate_template_pagination($u_search, 'pagination', $total_match_count, $per_page, $start);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'SEARCH_TITLE' => $l_search_title,
|
||||
@@ -611,7 +611,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
'SEARCH_WORDS' => $keywords,
|
||||
'SEARCHED_QUERY' => $search->search_query,
|
||||
'IGNORED_WORDS' => (sizeof($search->common_words)) ? implode(' ', $search->common_words) : '',
|
||||
'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start),
|
||||
'PAGE_NUMBER' => on_page($u_search, $total_match_count, $per_page, $start),
|
||||
|
||||
'PHRASE_SEARCH_DISABLED' => $phrase_search_disabled,
|
||||
|
||||
@@ -1006,7 +1006,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
|
||||
if ($show_results == 'topics')
|
||||
{
|
||||
generate_pagination($view_topic_url, $replies + 1, $config['posts_per_page'], 1, '', true, true, 'searchresults');
|
||||
generate_template_pagination($view_topic_url, 'searchresults.pagination', $replies + 1, $config['posts_per_page'], 1, true, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user