From cbcdca663dc4bd7bd5a1a2461273af95383b12fe Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 23 Oct 2010 17:28:08 +0200 Subject: remove double check of in file_mod->download() Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'system/application') 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)) { -- cgit v1.2.3-24-g4f1b