summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2008-09-02 12:04:38 +0000
committermomo-i <momo-i@ampache>2008-09-02 12:04:38 +0000
commit790f54a8251fcf0dcee578a0444f7996be592284 (patch)
tree873a0ed67cbb707e154cac25de28709114cba13d /albums.php
parent0ce5d92079e9d575b5ad67e5b9718b6d0c8d838a (diff)
downloadampache-790f54a8251fcf0dcee578a0444f7996be592284.tar.gz
ampache-790f54a8251fcf0dcee578a0444f7996be592284.tar.bz2
ampache-790f54a8251fcf0dcee578a0444f7996be592284.zip
Fixed not defined get_image_from_source()
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 6fcccb00..829b4ef1 100644
--- a/albums.php
+++ b/albums.php
@@ -44,7 +44,7 @@ switch ($_REQUEST['action']) {
// Pull the image information
$data = array('file'=>$_FILES['file']['tmp_name']);
- $image_data = get_image_from_source($data);
+ $image_data = Album::get_image_from_source($data);
// If we got something back insert it
if ($image_data) {
@@ -73,7 +73,7 @@ switch ($_REQUEST['action']) {
$path_info = pathinfo($_FILES['file']['name']);
$upload['file'] = $_FILES['file']['tmp_name'];
$upload['mime'] = 'image/' . $path_info['extension'];
- $image_data = get_image_from_source($upload);
+ $image_data = Album::get_image_from_source($upload);
if ($image_data) {
$album->insert_art($image_data,$upload['0']['mime']);
@@ -145,7 +145,7 @@ switch ($_REQUEST['action']) {
$image_id = $_REQUEST['image'];
$album_id = $_REQUEST['album_id'];
- $image = get_image_from_source($_SESSION['form']['images'][$image_id]);
+ $image = Album::get_image_from_source($_SESSION['form']['images'][$image_id]);
$mime = $_SESSION['form']['images'][$image_id]['mime'];
$album = new Album($album_id);