diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-10 05:33:57 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-10 05:33:57 +0000 |
commit | 7f3669335313adf9108119df4186a51a5f94e292 (patch) | |
tree | f8b488a09df2198723de5661b050bc31e112b7ab /templates/show_artist.inc.php | |
parent | c1ed41a16dcbf1a632ad2ac99b40174628bf072e (diff) | |
download | ampache-7f3669335313adf9108119df4186a51a5f94e292.tar.gz ampache-7f3669335313adf9108119df4186a51a5f94e292.tar.bz2 ampache-7f3669335313adf9108119df4186a51a5f94e292.zip |
Change Browse from static to instantiable. Among other things, fixes FS#13;
probably also breaks things. Most things appear to still work, but I may have
missed some cases.
Diffstat (limited to 'templates/show_artist.inc.php')
-rw-r--r-- | templates/show_artist.inc.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php index 5c5e51b6..408e6b5e 100644 --- a/templates/show_artist.inc.php +++ b/templates/show_artist.inc.php @@ -22,6 +22,8 @@ $web_path = Config::get('web_path'); ?> <?php +$browse = new Browse(); +$browse->set_type($object_type); show_box_top($artist->f_name, 'info-box'); if (Config::get('ratings')) { ?> @@ -65,13 +67,12 @@ if (Config::get('ratings')) { </li> <?php } ?> <li> - <input type="checkbox" id="show_artist_artCB" <?php echo $string = Browse::get_filter('show_art') ? 'checked="checked"' : ''; ?>/> <?php echo _('Show Art'); ?> - <?php echo Ajax::observe('show_artist_artCB','click',Ajax::action('?page=browse&action=browse&key=show_art&value=1&type=album','')); ?> + <input type="checkbox" id="show_artist_artCB" <?php echo $string = Art::is_enabled() ? 'checked="checked"' : ''; ?>/> <?php echo _('Show Art'); ?> + <?php echo Ajax::observe('show_artist_artCB', 'click', Ajax::action('?page=browse&action=show_art&browse_id=' . $browse->id,'')); ?> </ul> </div> <?php show_box_bottom(); ?> <?php - Browse::set_type($object_type); - Browse::reset(); - Browse::show_objects($object_ids); + $browse->show_objects($object_ids); + $browse->store(); ?> |