diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-10-23 17:28:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-10-23 17:28:08 +0200 |
commit | cbcdca663dc4bd7bd5a1a2461273af95383b12fe (patch) | |
tree | 82ea8ac722e215da16809967db513fb87e7e9a15 /system/application/models/file_mod.php | |
parent | c7f25783afc80db404d2e20b9af4740d0a6c9b6b (diff) |
remove double check of in file_mod->download()
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/models/file_mod.php')
-rw-r--r-- | system/application/models/file_mod.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index b93aab354..444c091b2 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -195,11 +195,7 @@ class File_mod extends Model { $data['rmd_link'] = site_url($id.'/rmd'); header("Content-Type: text/html\n"); - if ($mode) { - $data['current_highlight'] = $mode; - } else { - $data['current_highlight'] = $this->mime2extension($type); - } + $data['current_highlight'] = $mode; echo $this->load->view('file/html_header', $data, true); $this->load->library("MemcacheLibrary"); if (! $cached = $this->memcachelibrary->get($filedata['hash'].'_'.$mode)) { |