From eef25a32593a58432029c71497ee77a24f04bf1e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 25 Feb 2018 19:47:10 -0500 Subject: [PATCH] Move contact_selector() --- include/acl_selectors.php | 5 ----- mod/fsuggest.php | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 37819fb56..b4eed7dd4 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -9,11 +9,6 @@ use Friendica\Model\Contact; require_once "mod/proxy.php"; -function contact_selector($selname, $selclass, $options, $preselected = false) -{ - return Acl::getSuggestContactSelectHTML($selname, $selclass, $options, defaults($preselected, [])); -} - function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false, $tabindex = null) { return Acl::getMessageContactSelectHTML($selname, $selclass, defaults($preselected, []), $size, $privmail, $celeb, $privatenet, $tabindex); } diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 86878a529..b0abeb220 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -4,6 +4,7 @@ */ use Friendica\App; +use Friendica\Core\Acl; use Friendica\Core\L10n; use Friendica\Core\Worker; use Friendica\Database\DBM; @@ -105,11 +106,10 @@ function fsuggest_content(App $a) $o .= '
'; - $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] );