diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 16:49:44 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 16:49:44 +0000 |
commit | 20b425c3ac56d24068f56cfa455e07d5fa26f13d (patch) | |
tree | 460a7b1a78886d85c1decb6cf92664f726504ba9 /templates/show_user.inc.php | |
parent | e00b5875aba6e3bad68096c59cb3641dbfb6dc4f (diff) | |
download | ampache-20b425c3ac56d24068f56cfa455e07d5fa26f13d.tar.gz ampache-20b425c3ac56d24068f56cfa455e07d5fa26f13d.tar.bz2 ampache-20b425c3ac56d24068f56cfa455e07d5fa26f13d.zip |
fixed song retaging, fixed the song view page tweaked sidebar browse and fixed a bug where sorting then viewing a object that could not be sorted by said type caused nothing to display
Diffstat (limited to 'templates/show_user.inc.php')
-rw-r--r-- | templates/show_user.inc.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/templates/show_user.inc.php b/templates/show_user.inc.php index d13b1b88..76f4d68d 100644 --- a/templates/show_user.inc.php +++ b/templates/show_user.inc.php @@ -39,20 +39,28 @@ $client->format(); </td> <td valign="top"> <h2><?php echo _('Active Playlist'); ?></h2> + <div style="padding-left:10px;"> <?php $tmp_playlist = new tmpPlaylist(tmpPlaylist::get_from_userid($client->id)); $object_ids = $tmp_playlist->get_items(); - foreach ($object_ids as $song_id) { - $song = new Song($song_id); - $song->format(); + foreach ($object_ids as $object_data) { + if ($object_data['1'] == 'radio' || $object_data['1'] == 'song') { + $object = new $object_data['1']($object_data['0']); + $object->format(); + } + else { + $object = new Random(); + $object->f_link = Random::get_type_name($object_data['1']); + } ?> - <?php echo $song->f_link; ?><br /> + <?php echo $object->f_link; ?><br /> <?php } ?> + </div> </td> </tr> <tr> <td valign="top"> - <h2><?php echo _('Recently Rated'); ?></h2> + </td> <td> <?php |