1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01: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 = '')
{
global $user_pref; // FIXME - user model, kill user_pref global
// global $user_pref; // FIXME - user model, kill user_pref global
if(true === $for)
{
@ -2629,7 +2629,8 @@ class e107
}
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;