diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-04 08:11:01 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-04 08:11:01 +0000 |
commit | 4e9823cd1064cc876b449752b933c89c367d84c6 (patch) | |
tree | c21f0f5c9d77176caefe5701c20afbd9d610409f /albums.php | |
parent | c917726df7e3d327e3bc3030bb0b7f63925d0b42 (diff) | |
download | ampache-4e9823cd1064cc876b449752b933c89c367d84c6.tar.gz ampache-4e9823cd1064cc876b449752b933c89c367d84c6.tar.bz2 ampache-4e9823cd1064cc876b449752b933c89c367d84c6.zip |
fixed mysql5 crap, thx WarrenG cleaned up some of the show_songs code and stuff that calls it, did a little work on playlists
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -46,20 +46,16 @@ if ($_REQUEST['action'] === 'clear_art') { } // clear_art // if we have album elseif (isset($album)) { - $album = new Album($album); + $album = new Album($_REQUEST['album']); $album->format_album(); - $artist_obj = new Artist($artist_obj); - require (conf('prefix') . "/templates/show_album.inc"); - if (isset($artist) && $artist_obj->name == "Unknown (Orphaned)" ) { - $song_ids = get_song_ids_from_artist_and_album($artist, $album->id); - } - else { - $song_ids = get_song_ids_from_album($album->id); - } + /* Get the song ids for this album */ + $song_ids = $album->get_song_ids($_REQUEST['artist']); + show_songs($song_ids,0,$album); + } // isset(album) // Finds the Album art from amazon |