summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-04 05:37:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-04 05:37:15 +0000
commit1068c367ac5ee03fc799773289786863689da5bd (patch)
tree2df7950b9a110160233e22392526096ac2589550 /albums.php
parent560dbe70f23b4353b5d98736fb16dd088d4f269a (diff)
downloadampache-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.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/albums.php b/albums.php
index f32a9f6a..266ab9aa 100644
--- a/albums.php
+++ b/albums.php
@@ -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");