diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:18:47 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:18:47 +0200 |
commit | 4dc7ed139bdc809d468d4d055a86221c8e3b6dd0 (patch) | |
tree | 3b7d842d6f21d873b15c538fa93414d7fa30cacb /lib | |
parent | c1f7d320e8c8b344d48745314614dac8968a79b2 (diff) | |
download | nextcloud-server-4dc7ed139bdc809d468d4d055a86221c8e3b6dd0.tar.gz nextcloud-server-4dc7ed139bdc809d468d4d055a86221c8e3b6dd0.zip |
don´t hardcode /tmp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 2 | ||||
-rw-r--r-- | lib/migrate.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index 31819d2e3fc..6a2b3a6897b 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) { diff --git a/lib/migrate.php b/lib/migrate.php index 8fb949d66e1..f9cab915d04 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -146,7 +146,7 @@ class OC_Migrate{ case 'instance': self::$content = new OC_Migration_Content( self::$zip ); // Creates a zip that is compatable with the import function - $dbfile = tempnam( "/tmp", "owncloud_export_data_" ); + $dbfile = tempnam( get_temp_dir(), "owncloud_export_data_" ); OC_DB::getDbStructure( $dbfile, 'MDB2_SCHEMA_DUMP_ALL'); // Now add in *dbname* and *dbprefix* |