1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 07:08:09 +01:00

[ticket/10943] use keywords variable to display in search box

$keywords which contains the string as entered by the user should be used
to display in search box instead of search_query.

PHPBB3-10943
This commit is contained in:
Dhruv Goel 2012-06-20 11:14:16 +05:30 committed by unknown
parent 1d0607cbb3
commit 615f32cd71

View File

@ -599,7 +599,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$template->assign_vars(array(
'SEARCH_TITLE' => $l_search_title,
'SEARCH_MATCHES' => $l_search_matches,
'SEARCH_WORDS' => $search->search_query,
'SEARCH_WORDS' => $keywords,
'IGNORED_WORDS' => (sizeof($search->common_words)) ? implode(' ', $search->common_words) : '',
'PAGINATION' => generate_pagination($u_search, $total_match_count, $per_page, $start),
'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start),