Some more replacements of create_function

This commit is contained in:
Rob Lensen
2018-03-19 23:55:21 +01:00
parent 8263335c42
commit 50d8aafc77
5 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -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;
}
?>
?>