forked from leftypol/leftypol
search.php: supply flag filter enablement
This commit is contained in:
parent
c9610bb237
commit
3c5cca9265
1 changed files with 4 additions and 2 deletions
|
|
@ -32,7 +32,8 @@ if (isset($_GET['search']) && !empty($_GET['search'])) {
|
||||||
$body = Element('search_form.html', [
|
$body = Element('search_form.html', [
|
||||||
'boards' => $search_service->getSearchableBoards(),
|
'boards' => $search_service->getSearchableBoards(),
|
||||||
'board' => $actual_board,
|
'board' => $actual_board,
|
||||||
'search' => \str_replace('"', '"', utf8tohtml($_GET['search']))
|
'search' => \str_replace('"', '"', utf8tohtml($_GET['search'])),
|
||||||
|
'flags_enabled' => $search_service->isFlagFilterEnabled()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($search_res === null) {
|
if ($search_res === null) {
|
||||||
|
|
@ -64,7 +65,8 @@ if (isset($_GET['search']) && !empty($_GET['search'])) {
|
||||||
$body = Element('search_form.html', [
|
$body = Element('search_form.html', [
|
||||||
'boards' => $search_service->getSearchableBoards(),
|
'boards' => $search_service->getSearchableBoards(),
|
||||||
'board' => false,
|
'board' => false,
|
||||||
'search' => false
|
'search' => false,
|
||||||
|
'flags_enabled' => $search_service->isFlagFilterEnabled()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue