fix default theme selection

This commit is contained in:
Nivesh Krishna 2023-02-10 20:02:17 +05:30 committed by GitHub
parent 399ae06a5c
commit 0c6950d49c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ trait Themes
public function ValidateTheme(string $sTheme): string
{
return \in_array($sTheme, $this->GetThemes()) ? $sTheme : $this->Config()->Get('themes', 'default', 'Default');
return \in_array($sTheme, $this->GetThemes()) ? $sTheme : $this->Config()->Get('webmail', 'theme', 'Default');
}
public function compileCss(string $sTheme, bool $bAdmin, bool $bMinified = false) : string