From bcf2c41c9fb4fc283b4018ff496cbbe45872f18c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 22 Mar 2010 04:11:39 +0000 Subject: commit everything. --- albums.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'albums.php') 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); -- cgit