1
0
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:
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->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);
}

View File

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

View File

@ -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>