summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index f2797e7e7..2ff774c8a 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -195,9 +195,12 @@ class File extends CI_Controller {
Falling back to plain text.</p>";
}
- $this->load->view($this->var->view_dir.'/html_header', $this->data);
- $this->output->append_output($cached["output"]);
- $this->load->view($this->var->view_dir.'/html_footer', $this->data);
+ // Don't use append_output because the output class does too
+ // much magic ({elapsed_time} and {memory_usage}).
+ // Direct echo puts us on the safe side.
+ echo $this->load->view($this->var->view_dir.'/html_header', $this->data, true);
+ echo $cached["output"];
+ echo $this->load->view($this->var->view_dir.'/html_footer', $this->data, true);
}
private function _pygmentize($file, $lexer)