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';
}
// 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');
}
}
-
if (!allowed_email($email)) {
$result['message'] .= t('Your email domain is not among those allowed on this site.') . EOL;
}
// 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),