mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Disable USERTHEME
when e_MENUMANAGER_ACTIVE
Fixes: https://github.com/e107inc/e107/issues/4527
This commit is contained in:
parent
daf0008705
commit
ca326d5273
@ -782,7 +782,14 @@ if(!isset($_E107['no_module']))
|
||||
if(!defined('USERTHEME') && !isset($_E107['no_theme']))
|
||||
{
|
||||
$dbg->logTime('Load Theme');
|
||||
define('USERTHEME', (e107::getUser()->getPref('sitetheme') && file_exists(e_THEME.e107::getUser()->getPref('sitetheme'). '/theme.php') ? e107::getUser()->getPref('sitetheme') : false));
|
||||
$userSiteTheme = e107::getUser()->getPref('sitetheme');
|
||||
if (
|
||||
empty($userSiteTheme) ||
|
||||
(defined('e_MENUMANAGER_ACTIVE') && e_MENUMANAGER_ACTIVE === true) ||
|
||||
!file_exists(e_THEME.$userSiteTheme. '/theme.php')
|
||||
)
|
||||
$userSiteTheme = false;
|
||||
define('USERTHEME', $userSiteTheme);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user