X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregmod.php;h=6d76e7ea7eb7f8814d892283ace04fa144782aac;hb=a5e91175243a41c77a56e73efc3672f20a7e6d23;hp=03cb7fa8fae1293dc9376fdec96242ab652e83c2;hpb=0dfa57948f152a90a4d8093419a2ea5ced07349c;p=friendica.git diff --git a/mod/regmod.php b/mod/regmod.php index 03cb7fa8fa..6d76e7ea7e 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -4,6 +4,7 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\System; use Friendica\Core\Worker; +use Friendica\Database\DBM; require_once('include/enotify.php'); require_once('include/user.php'); @@ -17,7 +18,7 @@ function user_allow($hash) { ); - if (! dbm::is_result($register)) { + if (! DBM::is_result($register)) { return false; } @@ -25,7 +26,7 @@ function user_allow($hash) { intval($register[0]['uid']) ); - if (! dbm::is_result($user)) { + if (! DBM::is_result($user)) { killme(); } @@ -41,10 +42,10 @@ function user_allow($hash) { $r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default` = 1", intval($user[0]['uid']) ); - if (dbm::is_result($r) && $r[0]['net-publish']) { + if (DBM::is_result($r) && $r[0]['net-publish']) { $url = System::baseUrl() . '/profile/' . $user[0]['nickname']; if ($url && strlen(Config::get('system','directory'))) { - Worker::add(PRIORITY_LOW, "directory", $url); + Worker::add(PRIORITY_LOW, "Directory", $url); } } @@ -77,7 +78,7 @@ function user_deny($hash) { dbesc($hash) ); - if (!dbm::is_result($register)) { + if (!DBM::is_result($register)) { return false; }