summaryrefslogtreecommitdiffstats
path: root/application/controllers/Main.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/Main.php')
-rw-r--r--application/controllers/Main.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/controllers/Main.php b/application/controllers/Main.php
index 9db63b39f..df3e8ad78 100644
--- a/application/controllers/Main.php
+++ b/application/controllers/Main.php
@@ -468,6 +468,7 @@ class Main extends MY_Controller {
if ($filedata !== false) {
$pygments = new \libraries\Pygments($this->mfile->file($filedata["data_id"]), $filedata["mimetype"], $filedata["filename"]);
if ($pygments->can_highlight()) {
+ $this->data["textarea_filename"] = $filedata["filename"];
$this->data["textarea_content"] = file_get_contents($this->mfile->file($filedata["data_id"]));
}
}