diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 07:35:27 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-12 07:35:27 +0000 |
commit | 5678d78c06e1a5ae021f41147e893b48bc2f9e1e (patch) | |
tree | 950e89edc94adecc5c62ac7eb3635c3e8f401549 /lib/class/browse.class.php | |
parent | b69c3a0ec66997f9045c9fbecada3e38da55c3dd (diff) | |
download | ampache-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.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 |