]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Fixes:
[friendica.git] / mod / fsuggest.php
index 86878a5295c0463af912ac405a45fbdbb6f11158..4f432d840a89287e5927214f3e190671c31cdd6e 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 use Friendica\App;
+use Friendica\Core\ACL;
 use Friendica\Core\L10n;
 use Friendica\Core\Worker;
 use Friendica\Database\DBM;
@@ -75,8 +76,6 @@ function fsuggest_post(App $a)
 
 function fsuggest_content(App $a)
 {
-       require_once 'include/acl_selectors.php';
-
        if (! local_user()) {
                notice(L10n::t('Permission denied.') . EOL);
                return;
@@ -105,11 +104,10 @@ function fsuggest_content(App $a)
 
        $o .= '<form id="fsuggest-form" action="fsuggest/' . $contact_id . '" method="post" >';
 
-       $o .= contact_selector(
+       $o .= ACL::getSuggestContactSelectHTML(
                'suggest',
                'suggest-select',
-               ['size' => 4, 'exclude' => $contact_id, 'networks' => 'DFRN_ONLY', 'single' => true],
-               false
+               ['size' => 4, 'exclude' => $contact_id, 'networks' => 'DFRN_ONLY', 'single' => true]
        );