diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-22 17:36:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-24 12:18:49 +0200 |
commit | 0b9629778393436a7858ccf8211ef44c1e446f61 (patch) | |
tree | 38a723b966e96775d8df2f4126b0d129b1e190c9 /lib/base.php | |
parent | 83c74b80ad826af60d894ba91bb1e56fd2005d32 (diff) | |
download | nextcloud-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.php | 3 |
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') { |