From 40db6baa6b1804ae0462259fec8d47aae353c4bc Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 5 Feb 2020 21:37:58 -0500 Subject: [PATCH] Rename hide friends checkbox field variable --- src/Module/Settings/Profile/Index.php | 2 +- view/templates/settings/profile/hide-friends.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Settings/Profile/Index.php b/src/Module/Settings/Profile/Index.php index ea9b41866a..ca3a28258f 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 853678d0f2..8b10deb56a 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}}
-- 2.39.5