Rename hide friends checkbox field variable

This commit is contained in:
Hypolite Petovan 2020-02-05 21:37:58 -05:00
parent a7a38da62d
commit 40db6baa6b
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ class Index extends BaseSettings
$opt_tpl = Renderer::getMarkupTemplate('settings/profile/hide-friends.tpl'); $opt_tpl = Renderer::getMarkupTemplate('settings/profile/hide-friends.tpl');
$hide_friends = Renderer::replaceMacros($opt_tpl, [ $hide_friends = Renderer::replaceMacros($opt_tpl, [
'$yesno' => [ '$hide_friends' => [
'hide-friends', //Name 'hide-friends', //Name
DI::l10n()->t('Hide contacts and friends:'), //Label DI::l10n()->t('Hide contacts and friends:'), //Label
!!$profile['hide-friends'], //Value !!$profile['hide-friends'], //Value

View File

@ -1,3 +1,3 @@
<div id="profile-edit-hide-friends-wrapper"> <div id="profile-edit-hide-friends-wrapper">
{{include file="field_checkbox.tpl" field=$yesno}} {{include file="field_checkbox.tpl" field=$hide_friends}}
</div> </div>