summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-04-09 16:18:13 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-09 16:18:13 -0400
commitec9389f5c64f7de1d985d364b55a7872580034c2 (patch)
tree57f572f384315853c93c1b5a51f91fff91990895 /image.php
parent8b27b6aee2e7662f1363692f647aff2d70720063 (diff)
downloadampache-ec9389f5c64f7de1d985d364b55a7872580034c2.tar.gz
ampache-ec9389f5c64f7de1d985d364b55a7872580034c2.tar.bz2
ampache-ec9389f5c64f7de1d985d364b55a7872580034c2.zip
Make Art->get_from_source() static
Half the calls to it were already trying to call it as a static method anyway. The only time $this was referenced was to get the type, so pass type as a parameter.
Diffstat (limited to 'image.php')
-rw-r--r--image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.php b/image.php
index 63523f3c..c79d750d 100644
--- a/image.php
+++ b/image.php
@@ -85,7 +85,7 @@ switch ($_GET['type']) {
case 'session':
vauth::check_session();
$key = scrub_in($_REQUEST['image_index']);
- $image = Art::get_from_source($_SESSION['form']['images'][$key]);
+ $image = Art::get_from_source($_SESSION['form']['images'][$key], 'album');
$mime = $_SESSION['form']['images'][$key]['mime'];
$data = explode("/",$mime);
$extension = $data['1'];