$name = notags(trim($_POST['groupname']));
$r = Group::create(local_user(), $name);
if ($r) {
- info(t('Group created.') . EOL);
+ info(L10n::t('Group created.') . EOL);
$r = Group::getIdByName(local_user(), $name);
if ($r) {
goaway(System::baseUrl() . '/group/' . $r);
);
if ($r) {
- info(t('Group name changed.') . EOL);
+ info(L10n::t('Group name changed.') . EOL);
}
}
}
if ($result) {
- info(t('Group removed.') . EOL);
+ info(L10n::t('Group removed.') . EOL);
} else {
notice(L10n::t('Unable to remove group.') . EOL);
}
}
if (($a->argc > 1) && (intval($a->argv[1]))) {
- require_once 'include/acl_selectors.php';
require_once 'mod/contacts.php';
$r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d AND `deleted` = 0 LIMIT 1",