diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/controllers/file.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 24ecfcf37..19d044476 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -161,7 +161,7 @@ class File extends CI_Controller { $this->data['current_highlight'] = htmlspecialchars($mode); $this->data['timeout'] = $this->mfile->get_timeout_string($id); - echo $this->load->view($this->var->view_dir.'/html_header', $this->data, true); + $this->load->view($this->var->view_dir.'/html_header', $this->data); // highlight the file and chache the result $this->load->library("MemcacheLibrary"); @@ -185,9 +185,10 @@ class File extends CI_Controller { ob_end_clean(); $this->memcachelibrary->set($filedata['hash'].'_'.$mode, $cached, 100); } - echo $cached; - echo $this->load->view($this->var->view_dir.'/html_footer', $this->data, true); + $this->output->append_output($cached); + + $this->load->view($this->var->view_dir.'/html_footer', $this->data); return; } |