mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixes #1214 Theme prefs not loading correctly.
This commit is contained in:
@@ -1014,9 +1014,10 @@ class e107
|
|||||||
*/
|
*/
|
||||||
public static function getThemePref($pref_name = '', $default = null, $index = null)
|
public static function getThemePref($pref_name = '', $default = null, $index = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
if($pref_name) $pref_name = '/'.$pref_name;
|
if($pref_name) $pref_name = '/'.$pref_name;
|
||||||
$tprefs = e107::getConfig()->getPref('sitetheme_pref'.$pref_name, $default, $index);
|
$tprefs = self::getConfig()->getPref('sitetheme_pref'.$pref_name, $default, $index);
|
||||||
return !empty($tprefs) ?: array();
|
return !empty($tprefs) ? $tprefs : array();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -21,7 +21,7 @@ class theme_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_bootstrap_branding()
|
function sc_bootstrap_branding()
|
||||||
{
|
{
|
||||||
$pref = e107::pref('theme', 'branding', 'sitename');
|
$pref = e107::pref('theme', 'branding');
|
||||||
|
|
||||||
switch($pref)
|
switch($pref)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user