X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fsuggest.php;h=7f1fe3386c139f297244f88f0ea45f2d23aba310;hb=2f48eefc24a71dfc6bc26602a7719e4e956f58e0;hp=deda2b2c6c93bbfdb5738c6807ac2d5b4ddad0a3;hpb=e437c74d0e4e4ece4693a2e32513c3ecde7efb4d;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index deda2b2c6c..7f1fe3386c 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -2,122 +2,122 @@ /** * @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\Database\DBA; use Friendica\Model\Contact; use Friendica\Model\GContact; +use Friendica\Util\Proxy as ProxyUtils; -require_once 'include/contact_widgets.php'; - -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']) { //