aboutsummaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-08-27 13:21:26 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-08-27 13:21:40 +0200
commit16aff1045d5937cc6537e5da714a7ee4bd2edd95 (patch)
treefd637b6c6c3653ac52303d017d48e1de11f8ea44 /lib/migrate.php
parent59cf1d19e593efd9d376c3426a6214c438ca7b3d (diff)
downloadnextcloud-server-16aff1045d5937cc6537e5da714a7ee4bd2edd95.tar.gz
nextcloud-server-16aff1045d5937cc6537e5da714a7ee4bd2edd95.zip
make use of OC_User::getHome in lib/migrate.php
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index 917d77eaca0..e998cf1f4a8 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -141,7 +141,7 @@ class OC_Migrate{
// Export the app info
$exportdata = self::exportAppData();
// Add the data dir to the zip
- self::$content->addDir( $datadir . '/' . self::$uid, true, '/' );
+ self::$content->addDir(OC_User::getHome(self::$uid), true, '/' );
break;
case 'instance':
self::$content = new OC_Migration_Content( self::$zip );
@@ -159,14 +159,14 @@ class OC_Migrate{
self::$content->addFromString( $dbexport, "dbexport.xml" );
// Add user data
foreach(OC_User::getUsers() as $user){
- self::$content->addDir( $datadir . '/' . $user . '/', true, "/userdata/" );
+ self::$content->addDir(OC_User::getHome($user), true, "/userdata/" );
}
break;
case 'userfiles':
self::$content = new OC_Migration_Content( self::$zip );
// Creates a zip with all of the users files
foreach(OC_User::getUsers() as $user){
- self::$content->addDir( $datadir . '/' . $user . '/', true, "/" );
+ self::$content->addDir(OC_User::getHome($user), true, "/" );
}
break;
case 'system':