diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-08-29 19:15:59 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-08-29 19:16:01 +0200 |
commit | 6ac5e9af6770b4f9cb1349aa562edd4b8e84ce32 (patch) | |
tree | db923cf9973754c24b1af3260f3879a9b1b534b2 /application/controllers/file.php | |
parent | d02640f0cd32d6aa05ea67f3bb6542e17e590222 (diff) |
Set title on code render page
This got lost in the multipaste change.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |