Merge pull request #944 from e-foundation/master

fix default theme selection
This commit is contained in:
the-djmaze 2023-02-10 16:17:43 +01:00 committed by GitHub
commit 7dbcc3a58d
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