X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=bca2694d37360ebb9e7055114d91df6995eeca61;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=bb23fc8cba71ae1d26d2de67455e39b7c3a31f66;hpb=259f91caa9b13ed98adfaf4ac83fee56a7b1edbd;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index bb23fc8cba..bca2694d37 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -2,121 +2,123 @@ /** * @file mod/suggest.php */ + use Friendica\App; +use Friendica\Content\ContactSelector; +use Friendica\Content\Widget; +use Friendica\Core\L10n; +use Friendica\Core\Renderer; use Friendica\Core\System; -use Friendica\Database\DBM; -use Friendica\Model\GlobalContact; - -require_once 'include/contact_widgets.php'; +use Friendica\Database\DBA; +use Friendica\Model\Contact; +use Friendica\Model\GContact; +use Friendica\Util\Proxy as ProxyUtils; -function suggest_init(App $a) { +function suggest_init(App $a) +{ if (! local_user()) { return; } - if (x($_GET,'ignore') && intval($_GET['ignore'])) { + if (!empty($_GET['ignore'])) { // Check if we should do HTML-based delete confirmation if ($_REQUEST['confirm']) { //