From ed04606a52c31c951c766aca152ca91c138fbbf1 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 29 Jul 2007 05:34:21 +0000 Subject: slightly improved the logic on pulling albums, fixed a typo causing find album art not to work as advertised --- server/ajax.server.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/ajax.server.php b/server/ajax.server.php index 8681e720..201d0300 100644 --- a/server/ajax.server.php +++ b/server/ajax.server.php @@ -169,7 +169,7 @@ switch ($action) { $object = new $_REQUEST['type']($_REQUEST['id']); $songs = $object->get_songs(); foreach ($songs as $song_id) { - $GLOBALS['user']->playlist->add_object($song_id); + $GLOBALS['user']->playlist->add_object($song_id,'song'); } // end foreach break; case 'album_random': @@ -180,7 +180,7 @@ switch ($action) { $object = new $type($_REQUEST['id']); $songs = $object->get_random_songs(); foreach ($songs as $song_id) { - $GLOBALS['user']->playlist->add_object($song_id); + $GLOBALS['user']->playlist->add_object($song_id,'song'); } break; case 'clear_all': @@ -199,7 +199,7 @@ switch ($action) { break; default: case 'song': - $GLOBALS['user']->playlist->add_object($_REQUEST['id']); + $GLOBALS['user']->playlist->add_object($_REQUEST['id'],'song'); break; } // end switch -- cgit