]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
removed tabsi, removed some blank lines.
[friendica.git] / mod / regmod.php
index a2c454f9a2c295b756d6fdc2423000bd778b26c9..6d76e7ea7eb7f8814d892283ace04fa144782aac 100644 (file)
@@ -1,7 +1,10 @@
 <?php
 
 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');
@@ -15,7 +18,7 @@ function user_allow($hash) {
        );
 
 
-       if (! dbm::is_result($register)) {
+       if (! DBM::is_result($register)) {
                return false;
        }
 
@@ -23,7 +26,7 @@ function user_allow($hash) {
                intval($register[0]['uid'])
        );
 
-       if (! dbm::is_result($user)) {
+       if (! DBM::is_result($user)) {
                killme();
        }
 
@@ -39,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(get_config('system','directory'))) {
-                       proc_run(PRIORITY_LOW, "include/directory.php", $url);
+               if ($url && strlen(Config::get('system','directory'))) {
+                       Worker::add(PRIORITY_LOW, "Directory", $url);
                }
        }
 
@@ -75,7 +78,7 @@ function user_deny($hash) {
                dbesc($hash)
        );
 
-       if (!dbm::is_result($register)) {
+       if (!DBM::is_result($register)) {
                return false;
        }