summaryrefslogtreecommitdiffstats
path: root/albumart.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-18 08:47:08 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-18 08:47:08 +0000
commit4632a09466e986b311136fd0150bd4004b003c16 (patch)
treeabcf4a6bd0f8763634b3924b4e538eccdad9731c /albumart.php
parenta8aff4f67f9cc15e93bcd46668ae8e698d778acf (diff)
downloadampache-4632a09466e986b311136fd0150bd4004b003c16.tar.gz
ampache-4632a09466e986b311136fd0150bd4004b003c16.tar.bz2
ampache-4632a09466e986b311136fd0150bd4004b003c16.zip
new install theme and fixed jpeg resize issues
Diffstat (limited to 'albumart.php')
-rw-r--r--albumart.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/albumart.php b/albumart.php
index 7d29decb..9d21b411 100644
--- a/albumart.php
+++ b/albumart.php
@@ -66,7 +66,8 @@ switch ($_REQUEST['type']) {
} // else no image
// Print the album art
- $extension = substr($mime,strlen($mime)-3,3);
+ $extension= explode("/",$mime);
+ $extension = $data['1'];
header("Content-type: $mime");
header("Content-Disposition: filename=" . $album->name . "." . $extension);
if (!$_REQUEST['thumb']) {