diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php index 103a7b692..68d88d68e 100644 --- a/include/functions_search.inc.php +++ b/include/functions_search.inc.php @@ -138,7 +138,7 @@ function get_sql_search_clause($search) if (isset($search['fields']['allwords']) and !empty($search['fields']['allwords']['words']) and count($search['fields']['allwords']['fields']) > 0) { // 1) we search in regular fields (ie, the ones in the piwigo_images table) - $fields = array('file', 'name', 'comment'); + $fields = array('file', 'name', 'comment', 'author'); if (isset($search['fields']['allwords']['fields']) and count($search['fields']['allwords']['fields']) > 0) { diff --git a/include/ws_functions/pwg.images.php b/include/ws_functions/pwg.images.php index 46c64a6b3..27a198238 100644 --- a/include/ws_functions/pwg.images.php +++ b/include/ws_functions/pwg.images.php @@ -732,7 +732,7 @@ function ws_images_filteredSearch_create($params, $service) } $search['fields']['allwords']['mode'] = $params['allwords_mode']; - $allwords_fields_available = array('name', 'comment', 'file', 'tags', 'cat-title', 'cat-desc'); + $allwords_fields_available = array('name', 'comment', 'file', 'author', 'tags', 'cat-title', 'cat-desc'); if (!isset($params['allwords_fields'])) { $params['allwords_fields'] = $allwords_fields_available; diff --git a/search.php b/search.php index 83e8311f2..79827e586 100644 --- a/search.php +++ b/search.php @@ -41,7 +41,7 @@ $search = array( 'allwords' => array( 'words' => $words, 'mode' => 'AND', - 'fields' => array('file', 'name', 'comment', 'tags', 'cat-title', 'cat-desc'), + 'fields' => array('file', 'name', 'comment', 'tags', 'author', 'cat-title', 'cat-desc'), ), 'cat' => array( 'words' => $cat_ids, diff --git a/themes/default/template/include/search_filters.inc.tpl b/themes/default/template/include/search_filters.inc.tpl index d85908fbf..d2131558b 100644 --- a/themes/default/template/include/search_filters.inc.tpl +++ b/themes/default/template/include/search_filters.inc.tpl @@ -106,6 +106,10 @@ str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can +