X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FACL.php;h=aa5e2221b782493a4b782fe11dd0bea75596eeb9;hb=afa6e0ee3cc86f254c121f0812e8adba7cc209ab;hp=4ed8d602a484f48a3481ed1dbb31021147d12f52;hpb=360614d2cf3aceeb763ef1281ad5236878f5d735;p=friendica.git diff --git a/src/Core/ACL.php b/src/Core/ACL.php index 4ed8d602a4..aa5e2221b7 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -47,7 +47,7 @@ class ACL /** * Returns a select input tag for private message recipient * - * @param int $selected Existing recipien contact ID + * @param int $selected Existing recipient contact ID * @return string * @throws \Exception */ @@ -66,8 +66,9 @@ class ACL $tpl = Renderer::getMarkupTemplate('acl/message_recipient.tpl'); $o = Renderer::replaceMacros($tpl, [ - '$contacts' => $contacts, - '$selected' => $selected, + '$contacts' => $contacts, + '$contacts_json' => json_encode($contacts), + '$selected' => $selected, ]); Hook::callAll(DI::args()->getModuleName() . '_post_recipient', $o); @@ -327,9 +328,9 @@ class ACL '$emtitle' => DI::l10n()->t('Example: bob@example.com, mary@example.com'), '$jotnets_summary' => DI::l10n()->t('Connectors'), '$visibility' => $visibility, - '$acl_contacts' => $acl_contacts, - '$acl_groups' => $acl_groups, - '$acl_list' => $acl_list, + '$acl_contacts' => json_encode($acl_contacts), + '$acl_groups' => json_encode($acl_groups), + '$acl_list' => json_encode($acl_list), '$contact_allow' => implode(',', $default_permissions['allow_cid']), '$group_allow' => implode(',', $default_permissions['allow_gid']), '$contact_deny' => implode(',', $default_permissions['deny_cid']),