From bd3dd61b8fb3fd77ac830b1ee26bc23c0d0eeadc Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 7 Oct 2012 00:14:18 +0200 Subject: c/file/download: stop working around CI's output class Signed-off-by: Florian Pritz --- application/controllers/file.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'application/controllers/file.php') 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; } -- cgit v1.2.3-24-g4f1b