mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fixes theme prefs.
This commit is contained in:
parent
76997558b0
commit
942156c255
@ -2367,17 +2367,16 @@ class themeHandler
|
||||
|
||||
$this->id = $name;
|
||||
$this->loadThemeConfig();
|
||||
$name = get_class($this->themeConfigObj);
|
||||
$className = get_class($this->themeConfigObj);
|
||||
|
||||
if($name === 'theme_config') // new way. 2.1.4
|
||||
if($className === 'theme_config') // new way. 2.1.4
|
||||
{
|
||||
$themeConfig = e107::getThemeConfig($name);
|
||||
|
||||
e107::getMessage()->addDebug("Saving theme prefs to their own row. ");
|
||||
e107::getMessage()->addDebug("Saving theme prefs to their own row: ".print_r($themePrefs,true));
|
||||
|
||||
foreach($themePrefs as $key=>$val)
|
||||
{
|
||||
|
||||
$themeConfig->add($key,$val);
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@ define("FONTAWESOME", 4);
|
||||
define('VIEWPORT', "width=device-width, initial-scale=1.0");
|
||||
|
||||
|
||||
|
||||
//
|
||||
|
||||
/* @see https://www.cdnperf.com */
|
||||
|
@ -40,4 +40,9 @@
|
||||
</menuPresets>
|
||||
</layout>
|
||||
</layouts>
|
||||
<themePrefs>
|
||||
<pref name='branding'>sitename</pref>
|
||||
<pref name='nav_alignment'>right</pref>
|
||||
<pref name='usernav_placement'>bottom</pref>
|
||||
</themePrefs>
|
||||
</e107Theme>
|
Loading…
x
Reference in New Issue
Block a user