summaryrefslogtreecommitdiff
path: root/fetch.php
diff options
context:
space:
mode:
Diffstat (limited to 'fetch.php')
-rw-r--r--fetch.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/fetch.php b/fetch.php
index cd35b9be6..b991f14ec 100644
--- a/fetch.php
+++ b/fetch.php
@@ -18,10 +18,8 @@
$CACHE = calc_cache($_REQUEST['cache']);
$WIDTH = $_REQUEST['w'];
$HEIGHT = $_REQUEST['h'];
- $EXT = media_extension($MEDIA);
- if($EXT !== false){
- $MIME = $mimetypes[$EXT];
- }else{
+ list($EXT,$MIME) = mimetype($MEDIA);
+ if($EXT === false){
$EXT = 'unknown';
$MIME = 'application/octet-stream';
}