mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:50:12 +00:00
Useless info messages removed
This commit is contained in:
parent
0b423b73ac
commit
3fc3ded750
39 changed files with 47 additions and 90 deletions
|
@ -53,7 +53,6 @@ class Group extends BaseModule
|
|||
$name = Strings::escapeTags(trim($_POST['groupname']));
|
||||
$r = Model\Group::create(local_user(), $name);
|
||||
if ($r) {
|
||||
info(DI::l10n()->t('Group created.'));
|
||||
$r = Model\Group::getIdByName(local_user(), $name);
|
||||
if ($r) {
|
||||
DI::baseUrl()->redirect('group/' . $r);
|
||||
|
@ -75,8 +74,8 @@ class Group extends BaseModule
|
|||
}
|
||||
$groupname = Strings::escapeTags(trim($_POST['groupname']));
|
||||
if (strlen($groupname) && ($groupname != $group['name'])) {
|
||||
if (Model\Group::update($group['id'], $groupname)) {
|
||||
info(DI::l10n()->t('Group name changed.'));
|
||||
if (!Model\Group::update($group['id'], $groupname)) {
|
||||
notice(DI::l10n()->t('Group name was not changed.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,9 +215,7 @@ class Group extends BaseModule
|
|||
DI::baseUrl()->redirect('contact');
|
||||
}
|
||||
|
||||
if (Model\Group::remove($a->argv[2])) {
|
||||
info(DI::l10n()->t('Group removed.'));
|
||||
} else {
|
||||
if (!Model\Group::remove($a->argv[2])) {
|
||||
notice(DI::l10n()->t('Unable to remove group.'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue