mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-13 13:21:43 +02:00
fixes ##2195 if conf['rate'] show rating filter
only allow rating filter if gallery uses rating update api, mcs.js and tpl to check if rating search_filters.inc.php update indentation due to extra if
This commit is contained in:
@@ -724,7 +724,7 @@ SELECT *
|
||||
*/
|
||||
function ws_images_filteredSearch_create($params, $service)
|
||||
{
|
||||
global $user;
|
||||
global $user, $conf;
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'include/functions_search.inc.php');
|
||||
|
||||
@@ -938,7 +938,7 @@ function ws_images_filteredSearch_create($params, $service)
|
||||
$search['fields']['ratios'] = $params['ratios'];
|
||||
}
|
||||
|
||||
if (isset($params['ratings']))
|
||||
if ($conf['rate'] and isset($params['ratings']))
|
||||
{
|
||||
$search['fields']['ratings'] = $params['ratings'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user