summaryrefslogtreecommitdiffstats
path: root/templates
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 /templates
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 'templates')
-rw-r--r--templates/show_album_art.inc.php2
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&amp;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>&nbsp;</td>\n"; }
else {
?>