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_albums.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_albums.inc.php')
-rw-r--r-- | templates/show_albums.inc.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php index 2496c11e..a99e2793 100644 --- a/templates/show_albums.inc.php +++ b/templates/show_albums.inc.php @@ -26,7 +26,7 @@ $ajax_url = Config::get('ajax_url'); <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_add" /> -<?php if (Browse::is_enabled('show_art')) { ?> +<?php if (Art::is_enabled()) { ?> <col id="col_cover" /> <?php } ?> <col id="col_album" /> @@ -39,13 +39,13 @@ $ajax_url = Config::get('ajax_url'); </colgroup> <tr class="th-top"> <th class="cel_add"><?php echo _('Add'); ?></th> - <?php if (Browse::is_enabled('show_art')) { ?> + <?php if (Art::is_enabled()) { ?> <th class="cel_cover"><?php echo _('Cover'); ?></th> <?php } ?> - <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&type=album&sort=name',_('Album'),'album_sort_name'); ?></th> - <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=album&sort=artist',_('Artist'),'album_sort_artist'); ?></th> + <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name',_('Album'),'album_sort_name'); ?></th> + <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist',_('Artist'),'album_sort_artist'); ?></th> <th class="cel_songs"><?php echo _('Songs'); ?></th> - <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&type=album&sort=year',_('Year'),'album_sort_year'); ?></th> + <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year',_('Year'),'album_sort_year'); ?></th> <th class="cel_tags"><?php echo _('Tags'); ?></th> <th class="col_rating"><?php echo _('Rating'); ?></th> <th class="cel_action"><?php echo _('Actions'); ?></th> @@ -70,13 +70,13 @@ $ajax_url = Config::get('ajax_url'); <?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> - <?php if (Browse::is_enabled('show_art')) { ?> + <?php if (Art::is_enabled()) { ?> <th class="cel_cover"><?php echo _('Cover'); ?></th> <?php } ?> - <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&type=album&sort=name',_('Album'),'album_sort_name_bottom'); ?></th> + <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name',_('Album'),'album_sort_name_bottom'); ?></th> <th class="cel_artist"><?php echo _('Artist'); ?></th> <th class="cel_songs"><?php echo _('Songs'); ?></th> - <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&type=album&sort=year',_('Year'),'album_sort_year_bottom'); ?></th> + <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year',_('Year'),'album_sort_year_bottom'); ?></th> <th class="cel_tags"><?php echo _('Tags'); ?></th> <th class="col_rating"><?php echo _('Rating'); ?></th> <th class="cel_action"><?php echo _('Actions'); ?></th> |