diff options
author | Florian Pritz <bluewind@xinu.at> | 2021-04-11 14:56:35 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2021-04-11 15:00:21 +0200 |
commit | b9af5af789c7200bc14a383a31110f6e222f6eca (patch) | |
tree | f485a4e6f05871fedbcc3c7a396b97735d8f69f6 /application/controllers/Main.php | |
parent | 54b3b5930d30860c6bede5e2d2421f973cb39058 (diff) |
Copy filename when repasting file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/Main.php')
-rw-r--r-- | application/controllers/Main.php | 1 |
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"])); } } |