diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-12-18 10:07:13 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-12-18 10:07:13 +0100 |
commit | a7cfa4648f08ced59c9a76b464cb135fe1e01571 (patch) | |
tree | 1b963e1b626e3133de3654c5537c8332363ff33f /application/controllers/file.php | |
parent | a87d7815d1664de0a866c0d295dd02973c09e3e9 (diff) |
display more information on delete_form
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 6 |
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") { |