X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=31f02fa4ce6640e04550a94d61237fe0a248359d;hb=6e2880c6799e5c98e41ea40e1bdbac7bfe6ae326;hp=86c7f7afdf4c759a4f4bc81ff1aed1f5aeae683c;hpb=8e6973b774efeff5dd381e8984c22171c6a14c31;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index 86c7f7afdf..31f02fa4ce 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -8,7 +8,6 @@ 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; @@ -41,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()); @@ -58,7 +57,7 @@ function suggest_content(App $a) if (!empty($_GET['ignore'])) { //