summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index de2ce314b..d14e4879a 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -165,6 +165,12 @@ class File extends CI_Controller {
$password = $this->file_mod->get_password();
$data["title"] = "Delete";
$data["id"] = $id;
+
+ $data["filedata"] = $this->file_mod->get_filedata($id);
+ if ($data["filedata"]) {
+ $data["filedata"]["size"] = filesize($this->file_mod->file($data["filedata"]["hash"]));
+ }
+
if ($id && !$this->file_mod->id_exists($id)) {
$data["msg"] = "Unkown ID.";
} elseif ($password != "NULL") {