Skip to content

Commit

Permalink
Fixed eZUser usage in migration conf
Browse files Browse the repository at this point in the history
  • Loading branch information
am0s authored Jun 4, 2021
1 parent fd7affb commit d2975ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Aplia/Migration/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ public static function bootstrap()
$migrationUser = $projectIni->variable('Migration', 'User');
if (is_numeric($migrationUser)) {
// Fetch by object ID
$user = eZUser::instance($migrationUser);
$user = \eZUser::instance($migrationUser);
} elseif (is_string($migrationUser) && $migrationUser) {
// Fetch by login name
/** @var eZUser */
$user = eZUser::fetchByName($migrationUser);
$user = \eZUser::fetchByName($migrationUser);
}
}
if (!$user) {
// No user set, use default admin user
$user = eZUser::instance(14);
$user = \eZUser::instance(14);
}
$user->loginCurrent();

Expand Down

0 comments on commit d2975ee

Please sign in to comment.