fixes #1937 quick search redirects to normal search

This commit is contained in:
plegall 2023-07-03 15:22:52 +02:00
parent 6c6c297b2a
commit c469f5142c
4 changed files with 40 additions and 66 deletions

View file

@ -21,11 +21,18 @@ trigger_notify('loc_begin_search');
// | Create a default search |
// +-----------------------------------------------------------------------+
$words = array();
if (!empty($_GET['q']))
{
include_once(PHPWG_ROOT_PATH.'include/functions_search.inc.php');
$words = split_allwords($_GET['q']);
}
$search = array(
'mode' => 'AND',
'fields' => array(
'allwords' => array(
'words' => array(),
'words' => $words,
'mode' => 'AND',
'fields' => array('file', 'name', 'comment', 'tags', 'cat-title', 'cat-desc'),
),