aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-06-22 15:16:13 +0530
committerunknown <Dhruv@Dhruv-XPS.(none)>2012-07-08 02:51:58 +0530
commitb98be2f23543a25b74dc8442338d0db4fcc3403b (patch)
treeff24ccd6482bd2fe4dbcbc0648ca1e23011c4af3 /phpBB
parent615f32cd712b6c2b63021c5be38dbe3d1247ca0e (diff)
downloadforums-b98be2f23543a25b74dc8442338d0db4fcc3403b.tar
forums-b98be2f23543a25b74dc8442338d0db4fcc3403b.tar.gz
forums-b98be2f23543a25b74dc8442338d0db4fcc3403b.tar.bz2
forums-b98be2f23543a25b74dc8442338d0db4fcc3403b.tar.xz
forums-b98be2f23543a25b74dc8442338d0db4fcc3403b.zip
[ticket/10943] displays searched query in search result
Search backend displays an additional normalized search query just above the ignored words. PHPBB3-10943
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/language/en/search.php1
-rw-r--r--phpBB/search.php1
-rw-r--r--phpBB/styles/prosilver/template/search_results.html1
3 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/language/en/search.php b/phpBB/language/en/search.php
index 5b6fdce0e7..7bf8473579 100644
--- a/phpBB/language/en/search.php
+++ b/phpBB/language/en/search.php
@@ -81,6 +81,7 @@ $lang = array_merge($lang, array(
'SEARCHED_FOR' => 'Search term used',
'SEARCHED_TOPIC' => 'Searched topic',
+ 'SEARCHED_QUERY' => 'Searched query',
'SEARCH_ALL_TERMS' => 'Search for all terms or use query as entered',
'SEARCH_ANY_TERMS' => 'Search for any terms',
'SEARCH_AUTHOR' => 'Search for author',
diff --git a/phpBB/search.php b/phpBB/search.php
index e7b47afc2a..d53ca1eb60 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -600,6 +600,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
'SEARCH_TITLE' => $l_search_title,
'SEARCH_MATCHES' => $l_search_matches,
'SEARCH_WORDS' => $keywords,
+ 'SEARCHED_QUERY' => $search->search_query,
'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),
diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html
index 5d75bd3d56..61f4a82792 100644
--- a/phpBB/styles/prosilver/template/search_results.html
+++ b/phpBB/styles/prosilver/template/search_results.html
@@ -1,6 +1,7 @@
<!-- INCLUDE overall_header.html -->
<h2><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --><!-- IF SEARCH_WORDS -->: <a href="{U_SEARCH_WORDS}">{SEARCH_WORDS}</a><!-- ENDIF --></h2>
+<!-- IF SEARCHED_QUERY --> <p>{L_SEARCHED_QUERY}: <strong>{SEARCHED_QUERY}</strong></p><!-- ENDIF -->
<!-- IF IGNORED_WORDS --> <p>{L_IGNORED_TERMS}: <strong>{IGNORED_WORDS}</strong></p><!-- ENDIF -->
<!-- IF SEARCH_TOPIC -->