File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 9
9
<?php
10
10
endif ;
11
11
12
+ if ($ search ->getSearchTerms () != trim ($ search ->getSearchTerms ())) {
13
+ parse_str ($ _SERVER ['QUERY_STRING ' ], $ args );
14
+ $ args ['recherche ' ] = trim ($ search ->getSearchTerms ());
15
+ $ query = urldecode (http_build_query ($ args ));
16
+ echo '<p id="search_warning"><strong>Warning:</strong> the current search includes leading or trailing whitespaces.<br/> <a href="/? '
17
+ . $ query . '">Click here</a> to perform the same search without whitespaces.</p> ' ;
18
+ }
19
+
12
20
foreach ($ output as $ results_table ) {
13
21
print $ results_table ;
14
22
}
Original file line number Diff line number Diff line change @@ -327,6 +327,17 @@ h3 {
327
327
display : block;
328
328
}
329
329
330
+ # search_warning {
331
+ margin : 0 auto;
332
+ text-align : center;
333
+ width : 75% ;
334
+ margin-top : 15px ;
335
+ }
336
+
337
+ # search_warning strong {
338
+ color : # ed3860 ;
339
+ }
340
+
330
341
/* Tables */
331
342
332
343
table {
You can’t perform that action at this time.
0 commit comments