summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-23 17:02:31 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-23 17:02:31 +0200
commit54c6da44f6da097fe647f1159817f5798d58d743 (patch)
tree2533585694aef45d83d805dc24a536fdc69e84e3 /application/models
parentfc0e2000733536fedd2da6ca2b219382c2f98518 (diff)
remove compatibility mimetype generation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/file_mod.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index f13fd40b8..fac85c43f 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -114,7 +114,7 @@ class File_mod extends CI_Model {
$filedata = $this->get_filedata($id);
$file = $this->file($filedata['hash']);
- $type = $filedata['mimetype'] ? $filedata['mimetype'] : exec(FCPATH.'scripts/mimetype -b --orig-name '.escapeshellarg($filedata['filename']).' '.escapeshellarg($file));
+ $type = $filedata['mimetype'];
$mode = $this->mime2extension($type);
$mode = $this->filename2extension($filedata['filename']) ? $this->filename2extension($filedata['filename']) : $mode;
@@ -225,7 +225,7 @@ class File_mod extends CI_Model {
}
// MODIFIED SINCE SUPPORT -- END
- $type = $filedata['mimetype'] ? $filedata['mimetype'] : exec(FCPATH.'scripts/mimetype -b --orig-name '.escapeshellarg($filedata['filename']).' '.escapeshellarg($file));
+ $type = $filedata['mimetype'];
// autodetect the mode for highlighting if the URL contains a / after the ID (URL: /ID/)
// URL: /ID/mode disables autodetection