From 5ecf89925b015d087501e9e9e6ed5eb7268c6ee4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 23 Oct 2010 22:43:55 +0200 Subject: client download location moved Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'system/application/models/file_mod.php') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 444c091b2..b93aab354 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -195,7 +195,11 @@ class File_mod extends Model { $data['rmd_link'] = site_url($id.'/rmd'); header("Content-Type: text/html\n"); - $data['current_highlight'] = $mode; + if ($mode) { + $data['current_highlight'] = $mode; + } else { + $data['current_highlight'] = $this->mime2extension($type); + } 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