summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-22 17:36:52 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-24 12:18:49 +0200
commit0b9629778393436a7858ccf8211ef44c1e446f61 (patch)
tree38a723b966e96775d8df2f4126b0d129b1e190c9 /cron.php
parent83c74b80ad826af60d894ba91bb1e56fd2005d32 (diff)
downloadnextcloud-server-0b9629778393436a7858ccf8211ef44c1e446f61.tar.gz
nextcloud-server-0b9629778393436a7858ccf8211ef44c1e446f61.zip
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();