[feature/postgresql-fulltext-search] use proper variable name

PHPBB3-9730
This commit is contained in:
Dhruv Goel 2012-06-28 19:07:24 +05:30 committed by unknown
parent d37c9cab6b
commit 7a2d36a25e

View file

@ -597,10 +597,10 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : ''; $u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
// Check if search backend supports phrase search or not // Check if search backend supports phrase search or not
$l_phrase_search_disabled = ''; $phrase_search_disabled = '';
if (strpos(html_entity_decode($keywords), '"') !== false && isset($search->phrase_search)) if (strpos(html_entity_decode($keywords), '"') !== false && isset($search->phrase_search))
{ {
$l_phrase_search_disabled = $search->phrase_search ? false : true; $phrase_search_disabled = $search->phrase_search ? false : true;
} }
$template->assign_vars(array( $template->assign_vars(array(
@ -611,7 +611,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
'PAGINATION' => generate_pagination($u_search, $total_match_count, $per_page, $start), 'PAGINATION' => generate_pagination($u_search, $total_match_count, $per_page, $start),
'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start), 'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start),
'PHRASE_SEARCH_DISABLED' => $l_phrase_search_disabled, 'PHRASE_SEARCH_DISABLED' => $phrase_search_disabled,
'TOTAL_MATCHES' => $total_match_count, 'TOTAL_MATCHES' => $total_match_count,
'SEARCH_IN_RESULTS' => ($search_id) ? false : true, 'SEARCH_IN_RESULTS' => ($search_id) ? false : true,