mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +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)
|
||||
{
|
||||
|
||||
if($pref_name) $pref_name = '/'.$pref_name;
|
||||
$tprefs = e107::getConfig()->getPref('sitetheme_pref'.$pref_name, $default, $index);
|
||||
return !empty($tprefs) ?: array();
|
||||
$tprefs = self::getConfig()->getPref('sitetheme_pref'.$pref_name, $default, $index);
|
||||
return !empty($tprefs) ? $tprefs : array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -21,7 +21,7 @@ class theme_shortcodes extends e_shortcode
|
||||
|
||||
function sc_bootstrap_branding()
|
||||
{
|
||||
$pref = e107::pref('theme', 'branding', 'sitename');
|
||||
$pref = e107::pref('theme', 'branding');
|
||||
|
||||
switch($pref)
|
||||
{
|
||||
|
Reference in New Issue
Block a user