From 22a04d8e938d6f2660e6c88cf954d638fc4321eb Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Wed, 30 May 2012 14:14:32 +0200 Subject: donĀ“t hardcode /tmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/helper.php') 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) { -- cgit v1.2.3