From 6ac5e9af6770b4f9cb1349aa562edd4b8e84ce32 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 29 Aug 2014 19:15:59 +0200 Subject: Set title on code render page This got lost in the multipaste change. Signed-off-by: Florian Pritz --- application/controllers/file.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/file.php b/application/controllers/file.php index cbda8bea2..e1b43d314 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -65,12 +65,14 @@ class File extends MY_Controller { return $this->_non_existent(); } $files = $this->mmultipaste->get_files($id); + $this->data["title"] = "Multipaste"; } elseif ($this->mfile->id_exists($id)) { if (!$this->mfile->valid_id($id)) { return $this->_non_existent(); } $files = array($this->mfile->get_filedata($id)); + $this->data["title"] = htmlspecialchars($files[0]["filename"]); } else { assert(0); } -- cgit v1.2.3-24-g4f1b