diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-02 17:00:17 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-02 17:00:17 +0200 |
commit | 2b090dbe79a52520459c7c375b050501293b578f (patch) | |
tree | 148e80b9f611d5df995759776ef2bcc8e7de5037 /application/controllers/file.php | |
parent | 70567d2c1eba3ae3182de82f2fdeea5fc44253a6 (diff) |
Get supported image types from drivers
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 12fb793bd..5e443017c 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -199,8 +199,7 @@ class File extends MY_Controller { $base = explode("/", $filedata["mimetype"])[0]; // TODO: handle video/audio - if ($base == "image" - || in_array($mimetype, array("application/pdf"))) { + if (\libraries\Image::type_supported($mimetype)) { $filedata["tooltip"] = $this->_tooltip_for_image($filedata); $filedata["orientation"] = libraries\Image::get_exif_orientation($file); $this->output_cache->add_merge( |