X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuimport.php;h=af4f434d4bb0d65da2477695e7764e740bd577e8;hb=3b2cd854837e5df38f75f323aab24e31098812d4;hp=442df94460777cb5ef555982929d4c80786ed9bc;hpb=09020192d6258fad8c8e7085d2021036f95317fa;p=friendica.git diff --git a/include/uimport.php b/include/uimport.php index 442df94460..af4f434d4b 100644 --- a/include/uimport.php +++ b/include/uimport.php @@ -3,6 +3,8 @@ use Friendica\App; use Friendica\Core\System; use Friendica\Core\PConfig; +use Friendica\Core\Worker; +use Friendica\Database\DBM; require_once("include/Photo.php"); define("IMPORT_DEBUG", False); @@ -103,7 +105,7 @@ function import_account(App $a, $file) { notice(t('Error! Cannot check nickname')); return; } - if (dbm::is_result($r) > 0) { + if (DBM::is_result($r) > 0) { notice(sprintf(t("User '%s' already exists on this server!"), $account['user']['nickname'])); return; } @@ -114,7 +116,7 @@ function import_account(App $a, $file) { notice(t('Error! Cannot check nickname')); return; } - if (dbm::is_result($r) > 0) { + if (DBM::is_result($r) > 0) { notice(sprintf(t("User '%s' already exists on this server!"), $account['user']['nickname'])); return; } @@ -284,7 +286,7 @@ function import_account(App $a, $file) { } // send relocate messages - proc_run(PRIORITY_HIGH, 'include/notifier.php', 'relocate', $newuid); + Worker::add(PRIORITY_HIGH, 'notifier', 'relocate', $newuid); info(t("Done. You can now login with your username and password")); goaway(System::baseUrl() . "/login");