X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fgroup.php;h=404448ebb77008b9175365c583ea452432823b0b;hb=a09273802ef0b790c0374a2fece6cded5686ebc2;hp=129cf18c2a24febbd72c57badf990ae87a5d0099;hpb=ac19a9cddc9e9cee323bb46123d95cfc02ffef0e;p=friendica.git diff --git a/mod/group.php b/mod/group.php index 129cf18c2a..404448ebb7 100644 --- a/mod/group.php +++ b/mod/group.php @@ -38,12 +38,12 @@ function group_post(App $a) { info(L10n::t('Group created.') . EOL); $r = Model\Group::getIdByName(local_user(), $name); if ($r) { - goaway(System::baseUrl() . '/group/' . $r); + $a->internalRedirect('group/' . $r); } } else { notice(L10n::t('Could not create group.') . EOL); } - goaway(System::baseUrl() . '/group'); + $a->internalRedirect('group'); return; // NOTREACHED } @@ -56,7 +56,7 @@ function group_post(App $a) { ); if (!DBA::isResult($r)) { notice(L10n::t('Group not found.') . EOL); - goaway(System::baseUrl() . '/contact'); + $a->internalRedirect('contact'); return; // NOTREACHED } $group = $r[0]; @@ -88,7 +88,7 @@ function group_content(App $a) { // With no group number provided we jump to the unassigned contacts as a starting point if ($a->argc == 1) { - goaway('group/none'); + $a->internalRedirect('group/none'); } // Switch to text mode interface if we have more than 'n' contacts or group members @@ -159,7 +159,7 @@ function group_content(App $a) { notice(L10n::t('Unable to remove group.') . EOL); } } - goaway(System::baseUrl() . '/group'); + $a->internalRedirect('group'); // NOTREACHED } @@ -183,7 +183,7 @@ function group_content(App $a) { if (!DBA::isResult($r)) { notice(L10n::t('Group not found.') . EOL); - goaway(System::baseUrl() . '/contact'); + $a->internalRedirect('contact'); } $group = $r[0];