aboutsummaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-16 22:50:35 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-16 22:50:35 +0000
commit5332c319a2140563478d83047d9f717c0d3e179f (patch)
treefe14a41d09cb9deee7a5c6c78df2e54438b962e7 /lib/migrate.php
parentc442a06a0217afa8ff284333b0560aeb87db7a55 (diff)
downloadnextcloud-server-5332c319a2140563478d83047d9f717c0d3e179f.tar.gz
nextcloud-server-5332c319a2140563478d83047d9f717c0d3e179f.zip
Migration info is an object. Other fixes
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index 522d8da843c..28c36e96167 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -377,11 +377,11 @@ class OC_Migrate{
/**
* @breif imports a new user
* @param $db string path to migration.db
- * @param $migrateinfo array of migration ino
+ * @param $info array of migration ino
* @param $uid optional uid to use
* @return bool if the import succedded
*/
- public static function importAppData( $db, $migrateinfo, $uid=false ){
+ public static function importAppData( $db, $info, $uid=false ){
if(!self::$uid){
OC_Log::write('migration','Tried to import without passing a uid',OC_Log::FATAL);
@@ -399,15 +399,15 @@ class OC_Migrate{
return false;
}
- if( !is_array( $migrateinfo ) ){
+ if( !is_array( $info ) ){
OC_Log::write('migration','$migrateinfo is not an array', OC_Log::FATAL);
return false;
}
// Set the user id
- self::$uid = $info['migrateinfo']['uid'];
+ self::$uid = $info->migrateinfo->uid;
- $apps = $info['apps'];
+ $apps = $info->app;
foreach( self::$providers as $provider){
// Is the app in the export?
@@ -415,7 +415,7 @@ class OC_Migrate{
// Did it succeed?
if( $app[$provider->id] ){
// Then do the import
- $provider->import();
+ $provider->import( $info );
}
}
}