summaryrefslogtreecommitdiffstats
path: root/templates/show_songs.inc.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
commit7f3669335313adf9108119df4186a51a5f94e292 (patch)
treef8b488a09df2198723de5661b050bc31e112b7ab /templates/show_songs.inc.php
parentc1ed41a16dcbf1a632ad2ac99b40174628bf072e (diff)
downloadampache-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_songs.inc.php')
-rw-r--r--templates/show_songs.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index 0a40b8ad..7eec665b 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -38,12 +38,12 @@ $ajax_url = Config::get('ajax_url');
</colgroup>
<tr class="th-top">
<th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=title',_('Song Title'),'sort_song_title'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=artist',_('Artist'),'sort_song_artist'); ?></th>
- <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=album',_('Album'),'sort_song_album'); ?></th>
+ <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=title', _('Song Title'), 'sort_song_title'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist', _('Artist'), 'sort_song_artist'); ?></th>
+ <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=album', _('Album'), 'sort_song_album'); ?></th>
<th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=track',_('Track'),'sort_song_track'); ?></th>
- <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=time',_('Time'),'sort_song_time'); ?></th>
+ <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=track', _('Track'), 'sort_song_track'); ?></th>
+ <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=time', _('Time'), 'sort_song_time'); ?></th>
<?php if (Config::get('ratings')) {
Rating::build_cache('song', $object_ids);
?>