diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:14:32 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:14:32 +0200 |
commit | 22a04d8e938d6f2660e6c88cf954d638fc4321eb (patch) | |
tree | 30d24a2dc52cc747a8cbfe4fa14c020e4aefcfe9 /lib/helper.php | |
parent | dbcd26be684461daac7c406cc3f52a2a810d1126 (diff) | |
download | nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.tar.gz nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.zip |
don´t hardcode /tmp
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index e3d292737a4..537465b15ac 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -514,7 +514,7 @@ class OC_Helper { * remove all files created by self::tmpFile */ public static function cleanTmp(){ - $leftoversFile='/tmp/oc-not-deleted'; + $leftoversFile=get_temp_dir().'/oc-not-deleted'; if(file_exists($leftoversFile)){ $leftovers=file($leftoversFile); foreach($leftovers as $file) { |