mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 11:13:02 +02:00
Some more replacements of create_function
This commit is contained in:
@@ -32,7 +32,7 @@ function ws_tags_getList($params, &$service)
|
||||
$tags = get_available_tags();
|
||||
if ($params['sort_by_counter'])
|
||||
{
|
||||
usort($tags, create_function('$a,$b', 'return -$a["counter"]+$b["counter"];') );
|
||||
usort($tags, function($a, $b) { return -$a["counter"]+$b["counter"]; });
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -245,4 +245,4 @@ function ws_tags_add($params, &$service)
|
||||
return $creation_output;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user