1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fixes theme prefs.

This commit is contained in:
Cameron
2017-01-30 08:52:12 -08:00
parent 76997558b0
commit 942156c255
3 changed files with 9 additions and 4 deletions

View File

@@ -2367,17 +2367,16 @@ class themeHandler
$this->id = $name; $this->id = $name;
$this->loadThemeConfig(); $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); $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) foreach($themePrefs as $key=>$val)
{ {
$themeConfig->add($key,$val); $themeConfig->add($key,$val);
} }

View File

@@ -14,6 +14,7 @@ define("FONTAWESOME", 4);
define('VIEWPORT', "width=device-width, initial-scale=1.0"); define('VIEWPORT', "width=device-width, initial-scale=1.0");
// //
/* @see https://www.cdnperf.com */ /* @see https://www.cdnperf.com */

View File

@@ -40,4 +40,9 @@
</menuPresets> </menuPresets>
</layout> </layout>
</layouts> </layouts>
<themePrefs>
<pref name='branding'>sitename</pref>
<pref name='nav_alignment'>right</pref>
<pref name='usernav_placement'>bottom</pref>
</themePrefs>
</e107Theme> </e107Theme>