]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/User.php
Removed useless "function_exists" checks
[friendica.git] / src / Model / User.php
index a66075cac6f997f36dbde639bafc0da3d1c48799..25aa2401e7f9d067c1e00dc4d2778926c1f31340 100644 (file)
@@ -21,7 +21,6 @@ use dba;
 require_once 'boot.php';
 require_once 'include/crypto.php';
 require_once 'include/enotify.php';
-require_once 'include/group.php';
 require_once 'include/network.php';
 require_once 'library/openid.php';
 require_once 'include/pgettext.php';
@@ -225,7 +224,6 @@ class User
                }
 
                // So now we are just looking for a space in the full name.
-
                $loose_reg = Config::get('system', 'no_regfullname');
                if (!$loose_reg) {
                        $username = mb_convert_case($username, MB_CASE_TITLE, 'UTF-8');
@@ -234,7 +232,6 @@ class User
                        }
                }
 
-
                if (!allowed_email($email)) {
                        $result['message'] .= t('Your email domain is not among those allowed on this site.') . EOL;
                }
@@ -378,8 +375,7 @@ class User
 
                        // Create a group with no members. This allows somebody to use it
                        // right away as a default group for new contacts.
-
-                       group_add($newuid, t('Friends'));
+                       Group::create($newuid, t('Friends'));
 
                        $r = q("SELECT `id` FROM `group` WHERE `uid` = %d AND `name` = '%s'",
                                intval($newuid),