summaryrefslogtreecommitdiffstats
path: root/lib/base.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 /lib/base.php
parent83c74b80ad826af60d894ba91bb1e56fd2005d32 (diff)
downloadnextcloud-server-0b9629778393436a7858ccf8211ef44c1e446f61.tar.gz
nextcloud-server-0b9629778393436a7858ccf8211ef44c1e446f61.zip
Use the TempManager to handle temporary files
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 23f0e594510..4af5b515006 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -577,7 +577,8 @@ class OC {
self::registerLocalAddressBook();
//make sure temporary files are cleaned up
- register_shutdown_function(array('OC_Helper', 'cleanTmp'));
+ $tmpManager = \OC::$server->getTempManager();
+ register_shutdown_function(array($tmpManager, 'clean'));
if (OC_Config::getValue('installed', false) && !self::checkUpgrade(false)) {
if (\OC::$server->getAppConfig()->getValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {