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);
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;
}
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;
}
}
// 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");