X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fgroup.php;h=71fca276a016e1a964dc105ed7e23d5473aa3b7b;hb=d0dfcc71a82ac423db68a12fd2eaf6d13cb18e1f;hp=81477c32986b7a14ba570d6cbeb5e1b724d5e027;hpb=53fbd7e7c3c69fd38ba9451c044eeed6ad2cd021;p=friendica.git diff --git a/mod/group.php b/mod/group.php index 81477c3298..71fca276a0 100644 --- a/mod/group.php +++ b/mod/group.php @@ -5,6 +5,8 @@ * remove contacts to the contact groups */ +use Friendica\App; +use Friendica\Core\System; function group_init(App $a) { if (local_user()) { @@ -29,12 +31,12 @@ function group_post(App $a) { info(t('Group created.') . EOL); $r = group_byname(local_user(), $name); if ($r) { - goaway(App::get_baseurl() . '/group/' . $r); + goaway(System::baseUrl() . '/group/' . $r); } } else { notice(t('Could not create group.') . EOL); } - goaway(App::get_baseurl() . '/group'); + goaway(System::baseUrl() . '/group'); return; // NOTREACHED } @@ -47,7 +49,7 @@ function group_post(App $a) { ); if (! dbm::is_result($r)) { notice(t('Group not found.') . EOL); - goaway(App::get_baseurl() . '/contacts'); + goaway(System::baseUrl() . '/contacts'); return; // NOTREACHED } $group = $r[0]; @@ -125,7 +127,7 @@ function group_content(App $a) { notice(t('Unable to remove group.') . EOL); } } - goaway(App::get_baseurl() . '/group'); + goaway(System::baseUrl() . '/group'); // NOTREACHED } @@ -152,7 +154,7 @@ function group_content(App $a) { if (! dbm::is_result($r)) { notice(t('Group not found.') . EOL); - goaway(App::get_baseurl() . '/contacts'); + goaway(System::baseUrl() . '/contacts'); } $group = $r[0];