mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
fixes #1102 limit the number of tags shown in the menubar
This commit is contained in:
@@ -308,4 +308,18 @@ SELECT *
|
||||
return query2array($query);
|
||||
}
|
||||
|
||||
function tags_id_compare($a, $b)
|
||||
{
|
||||
return ($a['id'] < $b['id']) ? -1 : 1;
|
||||
}
|
||||
|
||||
function tags_counter_compare($a, $b)
|
||||
{
|
||||
if ($a['counter'] == $b['counter'])
|
||||
{
|
||||
return tags_id_compare($a, $b);
|
||||
}
|
||||
|
||||
return ($a['counter'] < $b['counter']) ? +1 : -1;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user