From ec9389f5c64f7de1d985d364b55a7872580034c2 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Mon, 9 Apr 2012 16:18:13 -0400 Subject: 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. --- templates/show_album_art.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 8304d063..f6e05283 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.inc.php @@ -40,7 +40,7 @@ while ($i <= $rows) { while ($j < 4) { $key = $i*4+$j; $image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key; - $dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key])); + $dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album')); if (!isset($images[$key])) { echo " \n"; } else { ?> -- cgit