1
0
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:
Cameron
2015-11-05 12:25:16 -08:00
parent 372a929c6e
commit f69c120af4
2 changed files with 4 additions and 3 deletions

View File

@@ -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();
}
/**

View File

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