summaryrefslogtreecommitdiffstats
path: root/system/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'system/application/models')
-rw-r--r--system/application/models/file_mod.php5
1 files changed, 5 insertions, 0 deletions
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 '<td class="markdownrender">'."\n";