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:
parent
a909cb8097
commit
52e02087ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user