mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #1937 quick search redirects to normal search
This commit is contained in:
parent
6c6c297b2a
commit
c469f5142c
4 changed files with 40 additions and 66 deletions
|
@ -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'),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue