X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=31f02fa4ce6640e04550a94d61237fe0a248359d;hb=6e2880c6799e5c98e41ea40e1bdbac7bfe6ae326;hp=4b67dd6eb8e7930b6d217c7dc46024d55707956f;hpb=c9cce8492e5b2607b2a092474d1de4d188b7a2c9;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index 4b67dd6eb8..31f02fa4ce 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -8,8 +8,8 @@ use Friendica\Content\ContactSelector; use Friendica\Content\Widget; use Friendica\Core\L10n; use Friendica\Core\Renderer; -use Friendica\Core\System; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\GContact; use Friendica\Util\Proxy as ProxyUtils; @@ -28,7 +28,7 @@ function suggest_post(App $a) notice(L10n::t('Contact suggestion successfully ignored.')); } - $a->internalRedirect('suggest'); + DI::baseUrl()->redirect('suggest'); } function suggest_content(App $a) @@ -40,10 +40,10 @@ function suggest_content(App $a) return; } - $_SESSION['return_path'] = $a->cmd; + $_SESSION['return_path'] = DI::args()->getCommand(); - $a->page['aside'] .= Widget::findPeople(); - $a->page['aside'] .= Widget::follow(); + DI::page()['aside'] .= Widget::findPeople(); + DI::page()['aside'] .= Widget::follow(); $r = GContact::suggestionQuery(local_user()); @@ -57,7 +57,7 @@ function suggest_content(App $a) if (!empty($_GET['ignore'])) { //