diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-04 05:37:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-04 05:37:15 +0000 |
commit | 1068c367ac5ee03fc799773289786863689da5bd (patch) | |
tree | 2df7950b9a110160233e22392526096ac2589550 /albums.php | |
parent | 560dbe70f23b4353b5d98736fb16dd088d4f269a (diff) | |
download | ampache-1068c367ac5ee03fc799773289786863689da5bd.tar.gz ampache-1068c367ac5ee03fc799773289786863689da5bd.tar.bz2 ampache-1068c367ac5ee03fc799773289786863689da5bd.zip |
* Fixed Single Artist view if you have 50+ albums
* Tweaked Recently Played text to make translations a little easier
* Removed unused Config options
* Added array definition if only one users exists
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -148,16 +148,12 @@ switch ($action) { /* Check to see if we have the image url still */ $image_id = $_REQUEST['image']; $album_id = $_REQUEST['album_id']; - - $url = $_SESSION['form']['images'][$image_id]['url']; - $mime = $_SESSION['form']['images'][$image_id]['mime']; - $snoopy = new Snoopy(); - $snoopy->fetch($url); - $image_data = $snoopy->results; + $image = get_image_from_source($_SESSION['form']['images'][$image_id]); + $mime = $_SESSION['form']['images'][$image_id]['mime']; $album = new Album($album_id); - $album->insert_art($image_data,$mime); + $album->insert_art($image,$mime); show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=$album_id"); |