1
0
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:
Nick Liu 2021-09-10 09:56:27 +02:00
parent daf0008705
commit ca326d5273
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

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