summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-04 08:11:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-04 08:11:01 +0000
commit4e9823cd1064cc876b449752b933c89c367d84c6 (patch)
treec21f0f5c9d77176caefe5701c20afbd9d610409f /albums.php
parentc917726df7e3d327e3bc3030bb0b7f63925d0b42 (diff)
downloadampache-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.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/albums.php b/albums.php
index 02e591b6..ee97351c 100644
--- a/albums.php
+++ b/albums.php
@@ -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