Merge branch 'wip-MDL-32547-master-v2' of git://github.com/abgreeve/moodle
Conflicts: version.php
This commit is contained in:
@@ -46,7 +46,7 @@ class file_temp_cleanup_task extends scheduled_task {
|
||||
|
||||
$tmpdir = $CFG->tempdir;
|
||||
// Default to last weeks time.
|
||||
$time = strtotime('-1 week');
|
||||
$time = time() - ($CFG->tempdatafoldercleanup * 3600);
|
||||
|
||||
$dir = new \RecursiveDirectoryIterator($tmpdir);
|
||||
// Show all child nodes prior to their parent.
|
||||
|
||||
Reference in New Issue
Block a user