summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/file_proxy.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-01 13:37:07 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-01 13:37:07 -0800
commit6fa880777cb3b61c0e380ebd5e7b83de55a8d6d4 (patch)
tree5be3946bc7f6b112be7e3a45960910151937dff8 /modules/gallery/controllers/file_proxy.php
parentf9ebe009c306eecf7480cc7778266b61d53b077e (diff)
Beter fix for #925.
Diffstat (limited to 'modules/gallery/controllers/file_proxy.php')
-rw-r--r--modules/gallery/controllers/file_proxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php
index ef4f302c..8fde1132 100644
--- a/modules/gallery/controllers/file_proxy.php
+++ b/modules/gallery/controllers/file_proxy.php
@@ -112,7 +112,7 @@ class File_Proxy_Controller extends Controller {
Session::abort_save();
// Dump out the image. If the item is a movie, then its thumbnail will be a JPG.
- if ($type != "albums" && in_array($item->mime_type, array("video/x-flv", "video/mp4"))) {
+ if ($item->is_movie() && $type != "albums") {
header("Content-type: image/jpeg");
} else {
header("Content-Type: $item->mime_type");