From 25e88b889dc43c34748ed7cde4a401b2082148db Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 9 Apr 2021 09:03:23 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03936=20-=20Fix=20designation=20of=20the?= =?UTF-8?q?=20default=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/preferences.php b/pages/preferences.php index c147ddd6e..4560046c2 100644 --- a/pages/preferences.php +++ b/pages/preferences.php @@ -499,7 +499,7 @@ function GetThemeFieldBlock(): iUIBlock } $bSelected = ($sCode === ThemeHandler::GetCurrentUserThemeId()); - if (true === $bSelected) { + if ($sCode === MetaModel::GetConfig()->Get('backoffice_default_theme')) { $sLabel = Dict::Format('UI:Preferences:General:Theme:DefaultThemeLabel', $sLabel); } $oSelectInput->AddSubBlock(SelectOptionUIBlockFactory::MakeForSelectOption($sCode, $sLabel, $bSelected));