diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-22 19:36:52 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-01-08 18:22:14 +0300 |
commit | 06bc987bd9da194ed37b12536182652c5bd75d25 (patch) | |
tree | cdf11f66a93c2da871187d6083cdb168db6c55a1 /lib/base.php | |
parent | 344606b2c80d0384364d0c691aedb45c7476df5c (diff) |
Use the TempManager to handle temporary files
Conflicts:
lib/private/helper.php
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 d653e068434..495d7534761 100644 --- a/lib/base.php +++ b/lib/base.php @@ -563,7 +563,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_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') { |