diff options
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r-- | lib/class/browse.class.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index 1d0f3db4..663761fd 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -815,13 +815,10 @@ class Browse { ${$class_name} = new $class_name($id); } - - if (!$ajax && in_array($_SESSION['browse']['type'], - array('artist','album','song'))) { - $tagcloudHead = "Matching tags"; - $tagcloudList = TagCloud::get_tags($_SESSION['browse']['type'], $all_ids); - require_once Config::get('prefix') . '/templates/show_tagcloud.inc.php'; - } + if (!$ajax && Tag::validate_type($_SESSION['browse']['type'])) { + $tagcloudList = Tag::get_many_tags($_SESSION['browse']['type'], $all_ids); + require_once Config::get('prefix') . '/templates/show_tagcloud.inc.php'; + } Ajax::start_container('browse_content'); // Switch on the type of browsing we're doing |