mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fixes #1102 limit the number of tags shown in the menubar
This commit is contained in:
@@ -138,6 +138,8 @@ function initialize_menu()
|
||||
else if ($conf['menubar_tag_cloud_content'] == 'always_all' or ($conf['menubar_tag_cloud_content'] == 'all_or_current' and empty($page['items'])) )
|
||||
{
|
||||
$tags = get_available_tags();
|
||||
usort($tags, 'tags_counter_compare');
|
||||
$tags = array_slice($tags, 0, $conf['menubar_tag_cloud_items_number']);
|
||||
foreach ($tags as $tag)
|
||||
{
|
||||
$block->data[] = array_merge(
|
||||
|
||||
Reference in New Issue
Block a user