From 7bb325ba0df707d6de6501a00527ebac457f3e0f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 27 Feb 2010 21:18:15 +0100 Subject: move html template to own file Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'system/application/controllers/file.php') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index ac8f15452..ba231d47f 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -167,24 +167,15 @@ class File extends Controller { && $this->file_mod->mime2extension($type) && filesize($file) <= $this->config->item('upload_max_text_size') ) { + $data['title'] = $filedata['filename']; + $data['raw_link'] = site_url($this->config->item('paste_download_url').$id); header("Content-Type: text/html\n"); - // TODO: move to own file - echo '' - .''.$filedata['filename'].'' - .' ' - .' ' - .'' - .'