diff options
author | Nathan Kinkade <nath@nkinka.de> | 2011-10-26 16:22:22 +0000 |
---|---|---|
committer | Nathan Kinkade <nath@nkinka.de> | 2011-10-26 16:22:22 +0000 |
commit | 963bcf0789148fb3aa9149581cb6d0791d2e641f (patch) | |
tree | 5c550f97a4325f67b00e1971ae78e93f87da8452 /modules/rest/controllers/rest.php | |
parent | 47456c0de8a408bca9b5a02a0fbc835ff1c01a68 (diff) | |
parent | 5a11684486e82758a9ea0764e779726252c17dea (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r-- | modules/rest/controllers/rest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index 52d9925b..624a02a0 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -69,6 +69,7 @@ class Rest_Controller extends Controller { $request->params = (object) $input->post(); if (isset($_FILES["file"])) { $request->file = upload::save("file"); + Event::add("system.shutdown", create_function("", "unlink(\"{$request->file}\");")); } break; } |