diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2012-04-09 16:18:13 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-04-09 16:18:13 -0400 |
commit | ec9389f5c64f7de1d985d364b55a7872580034c2 (patch) | |
tree | 57f572f384315853c93c1b5a51f91fff91990895 /image.php | |
parent | 8b27b6aee2e7662f1363692f647aff2d70720063 (diff) | |
download | ampache-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']; |