summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-02 01:39:23 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-02 01:39:23 -0400
commit30d3bfdb7f69c7b5702744f39739f1dd2e16e3ab (patch)
tree0aceae387c2931171a12bd2f2dfe1941790c2d8d
parentac8b89708c7f9c2cc0fa91328c0ec93a95c08b5a (diff)
downloadampache-30d3bfdb7f69c7b5702744f39739f1dd2e16e3ab.tar.gz
ampache-30d3bfdb7f69c7b5702744f39739f1dd2e16e3ab.tar.bz2
ampache-30d3bfdb7f69c7b5702744f39739f1dd2e16e3ab.zip
Fix FS#152
Tag browsing is now at least somewhat unbroken.
-rw-r--r--browse.php3
-rw-r--r--templates/show_tagcloud.inc.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/browse.php b/browse.php
index 62f4cdfd..da56b8f1 100644
--- a/browse.php
+++ b/browse.php
@@ -83,6 +83,9 @@ switch($_REQUEST['action']) {
$keys = array_keys($object_ids);
Tag::build_cache($keys);
show_box_top(_('Tag Cloud'),$class);
+ $browse2 = new Browse();
+ $browse2->set_type('song');
+ $browse2->store();
require_once Config::get('prefix') . '/templates/show_tagcloud.inc.php';
show_box_bottom();
require_once Config::get('prefix') . '/templates/browse_content.inc.php';
diff --git a/templates/show_tagcloud.inc.php b/templates/show_tagcloud.inc.php
index c2d58d42..a7a3b769 100644
--- a/templates/show_tagcloud.inc.php
+++ b/templates/show_tagcloud.inc.php
@@ -39,7 +39,7 @@ $web_path = Config::get('web_path');
$tag->format();
?>
<span id="click_<?php echo intval($tag->id); ?>" class="<?php echo $tag->f_class; ?>"><?php echo $tag->name; ?></span>
-<?php echo Ajax::observe('click_' . intval($tag->id),'click',Ajax::action('?page=tag&action=add_filter&&browse_id=' . $browse->id . '&tag_id=' . intval($tag->id),'')); ?>
+<?php echo Ajax::observe('click_' . intval($tag->id),'click',Ajax::action('?page=tag&action=add_filter&browse_id=' . $browse2->id . '&tag_id=' . intval($tag->id),'')); ?>
<?php } ?>
<?php if (!count($object_ids)) { ?>
<span class="fatalerror"><?php echo _('Not Enough Data'); ?></span>