From 170806775235beb2fd3ace4ca2d673b200c591d7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 17 Jul 2010 00:21:19 +0200 Subject: add the currently used highlighting lang to the page Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system/application/models') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 645858ecd..2c86aa41a 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -175,6 +175,11 @@ class File_mod extends Model { $data['auto_link'] = site_url($id).'/'; $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); + } echo $this->load->view('file/html_header', $data, true); if ($mode == "rmd") { echo ''."\n"; -- cgit v1.2.3-24-g4f1b