summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-03-22 04:11:39 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-03-22 04:11:39 +0000
commitbcf2c41c9fb4fc283b4018ff496cbbe45872f18c (patch)
tree0e0c90d2b7a9dc79439157efb03f2c81c99df734 /albums.php
parentb2dca6394051826dc6eb639484636c4eab168545 (diff)
downloadampache-bcf2c41c9fb4fc283b4018ff496cbbe45872f18c.tar.gz
ampache-bcf2c41c9fb4fc283b4018ff496cbbe45872f18c.tar.bz2
ampache-bcf2c41c9fb4fc283b4018ff496cbbe45872f18c.zip
commit everything.
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/albums.php b/albums.php
index 7970b73f..34eb2e67 100644
--- a/albums.php
+++ b/albums.php
@@ -42,10 +42,11 @@ switch ($_REQUEST['action']) {
}
$album = new Album($_REQUEST['album_id']);
+ $art = new Art($album->id,'album');
// Pull the image information
$data = array('file'=>$_FILES['file']['tmp_name']);
- $image_data = Art::get_from_source($data);
+ $image_data = $art->get_from_source($data);
// If we got something back insert it
if ($image_data) {
@@ -146,11 +147,11 @@ switch ($_REQUEST['action']) {
/* Check to see if we have the image url still */
$image_id = $_REQUEST['image'];
$album_id = $_REQUEST['album_id'];
+ $art = new Art($album_id,'album');
- $image = Art::get_from_source($_SESSION['form']['images'][$image_id]);
+ $image = $art->get_from_source($_SESSION['form']['images'][$image_id]);
$mime = $_SESSION['form']['images'][$image_id]['mime'];
- $art = new Art($album_id,'album');
$art->insert($image,$mime);
header("Location:" . Config::get('web_path') . "/albums.php?action=show&album=" . $art->uid);