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 /templates | |
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 'templates')
-rw-r--r-- | templates/show_album_art.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 "<td> </td>\n"; } else { ?> |