diff --git a/src/Module/Settings/Profile/Index.php b/src/Module/Settings/Profile/Index.php index ea9b41866..ca3a28258 100644 --- a/src/Module/Settings/Profile/Index.php +++ b/src/Module/Settings/Profile/Index.php @@ -215,7 +215,7 @@ class Index extends BaseSettings $opt_tpl = Renderer::getMarkupTemplate('settings/profile/hide-friends.tpl'); $hide_friends = Renderer::replaceMacros($opt_tpl, [ - '$yesno' => [ + '$hide_friends' => [ 'hide-friends', //Name DI::l10n()->t('Hide contacts and friends:'), //Label !!$profile['hide-friends'], //Value diff --git a/view/templates/settings/profile/hide-friends.tpl b/view/templates/settings/profile/hide-friends.tpl index 853678d0f..8b10deb56 100644 --- a/view/templates/settings/profile/hide-friends.tpl +++ b/view/templates/settings/profile/hide-friends.tpl @@ -1,3 +1,3 @@
- {{include file="field_checkbox.tpl" field=$yesno}} + {{include file="field_checkbox.tpl" field=$hide_friends}}