summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-03-21 20:53:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-03-21 20:53:15 +0000
commit3ce42f5e88ea4bec2ef832fe33a2efc0b5b5fc8e (patch)
tree1122e6d0efafeff4d8bd6344becb4f36b77f0666 /albums.php
parent181d9c5dcfbf3a76f808ad6ea9518bb9be90871b (diff)
downloadampache-3ce42f5e88ea4bec2ef832fe33a2efc0b5b5fc8e.tar.gz
ampache-3ce42f5e88ea4bec2ef832fe33a2efc0b5b5fc8e.tar.bz2
ampache-3ce42f5e88ea4bec2ef832fe33a2efc0b5b5fc8e.zip
More changes to art - have not removed old functionality yet
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/albums.php b/albums.php
index 3fce3720..ed79e348 100644
--- a/albums.php
+++ b/albums.php
@@ -59,12 +59,11 @@ switch ($_REQUEST['action']) {
break;
case 'find_art':
-
// If not a user then kick em out
if (!Access::check('interface','25')) { access_denied(); exit; }
// get the Album information
- $album = new Album($_REQUEST['album_id']);
+ $album = new Album($_GET['album_id']);
$album->format();
$images = array();
$cover_url = array();
@@ -74,7 +73,8 @@ switch ($_REQUEST['action']) {
$path_info = pathinfo($_FILES['file']['name']);
$upload['file'] = $_FILES['file']['tmp_name'];
$upload['mime'] = 'image/' . $path_info['extension'];
- $image_data = Album::get_image_from_source($upload);
+ $art = new Art($album->id,'album');
+ $image_data = $art->get_from_source($upload);
if ($image_data) {
$album->insert_art($image_data,$upload['0']['mime']);