diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-02-18 13:07:53 -0500 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-18 13:07:53 -0500 |
| commit | 195210a2abd87974c127772b41f33df17fa1d954 (patch) | |
| tree | 4b9fc593c418a0d0095d4183331e61e377584fe8 /modules/gallery/helpers/gallery_event.php | |
| parent | 1bc752d7855942c7c05573a61a150de93255cfb7 (diff) | |
| parent | afa61f9d0d551bc2a0c4fa903eb3f55742720c8d (diff) | |
Merge branch 'master' into jquery_190
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_event.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php index 26432ef5..a319b9c6 100644 --- a/modules/gallery/helpers/gallery_event.php +++ b/modules/gallery/helpers/gallery_event.php @@ -44,7 +44,7 @@ class gallery_event_Core { // var/tmp might be stickier because theoretically we could wind up spamming that // dir with a lot of files. But let's start with this and refine as we go. if (!(rand() % 500)) { - // Note that this code is roughly duplicated in gallery_event::gallery_shutdown + // Note that this code is roughly duplicated in gallery_task::file_cleanup $threshold = time() - 1209600; // older than 2 weeks foreach(array("logs", "tmp") as $dir) { $dir = VARPATH . $dir; @@ -67,6 +67,8 @@ class gallery_event_Core { } } } + // Delete all files marked using system::delete_later. + system::delete_marked_files(); } static function user_deleted($user) { |
