mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix body class not being set when in auto mode (#1558 regression)
This commit is contained in:
parent
3c2e664fe8
commit
b3725443c5
1 changed files with 5 additions and 1 deletions
|
|
@ -761,7 +761,11 @@ class ModuleHandler extends Handler
|
|||
*/
|
||||
protected function _setModuleColorScheme($site_module_info)
|
||||
{
|
||||
$color_scheme = $site_module_info->settings->color_scheme ?? Rhymix\Framework\UA::getColorScheme();
|
||||
$color_scheme = ($site_module_info->settings->color_scheme ?? '') ?: 'auto';
|
||||
if ($color_scheme === 'auto')
|
||||
{
|
||||
$color_scheme = Rhymix\Framework\UA::getColorScheme();
|
||||
}
|
||||
if (!in_array($color_scheme, ['auto', 'light', 'dark']))
|
||||
{
|
||||
$color_scheme = 'auto';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue