summaryrefslogtreecommitdiffstats
path: root/lib/class/browse.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 07:35:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 07:35:27 +0000
commit5678d78c06e1a5ae021f41147e893b48bc2f9e1e (patch)
tree950e89edc94adecc5c62ac7eb3635c3e8f401549 /lib/class/browse.class.php
parentb69c3a0ec66997f9045c9fbecada3e38da55c3dd (diff)
downloadampache-5678d78c06e1a5ae021f41147e893b48bc2f9e1e.tar.gz
ampache-5678d78c06e1a5ae021f41147e893b48bc2f9e1e.tar.bz2
ampache-5678d78c06e1a5ae021f41147e893b48bc2f9e1e.zip
renamed the tagcloud class to tag, started moving things around not sure where I like the taglist, seems weird in its own box
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r--lib/class/browse.class.php11
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