summaryrefslogtreecommitdiffstats
path: root/lib/migrate.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/migrate.php
parentdbcd26be684461daac7c406cc3f52a2a810d1126 (diff)
downloadnextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.tar.gz
nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.zip
don´t hardcode /tmp
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php2
1 files changed, 1 insertions, 1 deletions
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*