diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-12-28 08:06:03 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-12-28 08:06:03 +0000 |
commit | 748af8fc7c3172c48f8be3a111bc2cf2af92eefd (patch) | |
tree | 4cb22b8738db577f930405c18448cb4c78ecabb5 /lib/class/album.class.php | |
parent | a55a80fd30a6b45845fde643cd3f102c71efd071 (diff) | |
download | ampache-748af8fc7c3172c48f8be3a111bc2cf2af92eefd.tar.gz ampache-748af8fc7c3172c48f8be3a111bc2cf2af92eefd.tar.bz2 ampache-748af8fc7c3172c48f8be3a111bc2cf2af92eefd.zip |
fix issue where the small thumbnail is used for larger images if resize album art enabled
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index c38bb927..24f8d711 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -272,10 +272,12 @@ class Album extends database_object { * it trys to pull the resized art instead, if resized art is found then * it returns an additional resized=true in the array */ - public function get_art() { + public function get_art($return_raw=false) { // Attempt to get the resized art first - $art = $this->get_resized_db_art(); + if (!$return_raw) { + $art = $this->get_resized_db_art(); + } if (!is_array($art)) { $art = $this->get_db_art(); |