1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Issue #3096 - user theme preference check.

This commit is contained in:
Cameron
2018-06-14 17:03:03 -07:00
parent a909cb8097
commit 52e02087ae

View File

@@ -2609,7 +2609,7 @@ class e107
*/ */
public static function getThemeInfo($for = true, $path = '') public static function getThemeInfo($for = true, $path = '')
{ {
global $user_pref; // FIXME - user model, kill user_pref global // global $user_pref; // FIXME - user model, kill user_pref global
if(true === $for) if(true === $for)
{ {
@@ -2629,7 +2629,8 @@ class e107
} }
else else
{ {
$for = isset($user_pref['sitetheme']) ? $user_pref['sitetheme'] : self::getPref('sitetheme'); $user_pref = self::getUser()->getPref();
$for = !empty($user_pref['sitetheme']) ? $user_pref['sitetheme'] : self::getPref('sitetheme');
} }
break; break;