From d2975eedc9923544b8e01bbcbe84cce21bf8eee2 Mon Sep 17 00:00:00 2001 From: Jan Borsodi Date: Fri, 4 Jun 2021 09:06:52 +0200 Subject: [PATCH] Fixed eZUser usage in migration conf --- Aplia/Migration/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Aplia/Migration/Configuration.php b/Aplia/Migration/Configuration.php index 49ee79f..b820c76 100644 --- a/Aplia/Migration/Configuration.php +++ b/Aplia/Migration/Configuration.php @@ -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();