From e2db558de7dcd2922b91c3d6e9b9d83b2c819e8a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 16 Nov 2020 16:55:56 +0100 Subject: [PATCH] override theme even if autologin is turned on --- inc/inc.Authentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/inc.Authentication.php b/inc/inc.Authentication.php index 89d3ab7c1..36fb1dd6a 100644 --- a/inc/inc.Authentication.php +++ b/inc/inc.Authentication.php @@ -37,9 +37,9 @@ if (!isset($_COOKIE["mydms_session"])) { exit; } $theme = $user->getTheme(); - if (strlen($theme)==0) { + if (strlen($theme)==0 || !empty($settings->_overrideTheme)) { $theme = $settings->_theme; - $user->setTheme($theme); +// $user->setTheme($theme); } $lang = $user->getLanguage(); if (strlen($lang)==0) {