aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-30 14:14:32 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-30 14:14:32 +0200
commit22a04d8e938d6f2660e6c88cf954d638fc4321eb (patch)
tree30d24a2dc52cc747a8cbfe4fa14c020e4aefcfe9 /lib/helper.php
parentdbcd26be684461daac7c406cc3f52a2a810d1126 (diff)
downloadnextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.tar.gz
nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.zip
don´t hardcode /tmp
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php2
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) {