diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-17 15:46:52 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-17 15:46:52 -0800 |
commit | 9f02011dacdd2c4bf6d2d1c29be522f04a3d13c7 (patch) | |
tree | 6436553d04c789c36cc9eeafe87a35d47bce9098 /modules/rest/controllers/rest.php | |
parent | 87d20c63af02ae573853da2cb82d7323a56677b5 (diff) | |
parent | fd0051dab7258c817ff01877bd4324530ce79398 (diff) |
Merge pull request #148 from shadlaws/fix_2006
#2006 - Add system::mark_file_for_delete API to delete files at shutdown.
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r-- | modules/rest/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index bd03b334..54ca6fe9 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -69,7 +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}\");")); + system::delete_later($request->file); } break; } |