Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-22 19:36:52 +0400
committerRobin Appelman <icewind@owncloud.com>2014-10-24 14:18:49 +0400
commit0b9629778393436a7858ccf8211ef44c1e446f61 (patch)
tree38a723b966e96775d8df2f4126b0d129b1e190c9 /cron.php
parent83c74b80ad826af60d894ba91bb1e56fd2005d32 (diff)
Use the TempManager to handle temporary files
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 8344e551680..bcbb298de55 100644
--- a/cron.php
+++ b/cron.php
@@ -71,8 +71,7 @@ try {
// Handle unexpected errors
register_shutdown_function('handleUnexpectedShutdown');
- // Delete temp folder
- OC_Helper::cleanTmpNoClean();
+ \OC::$server->getTempManager()->cleanOld();
// Exit if background jobs are disabled!
$appmode = OC_BackgroundJob::getExecutionType();