mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
override theme even if autologin is turned on
This commit is contained in:
parent
42a0df1d52
commit
e2db558de7
|
@ -37,9 +37,9 @@ if (!isset($_COOKIE["mydms_session"])) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$theme = $user->getTheme();
|
$theme = $user->getTheme();
|
||||||
if (strlen($theme)==0) {
|
if (strlen($theme)==0 || !empty($settings->_overrideTheme)) {
|
||||||
$theme = $settings->_theme;
|
$theme = $settings->_theme;
|
||||||
$user->setTheme($theme);
|
// $user->setTheme($theme);
|
||||||
}
|
}
|
||||||
$lang = $user->getLanguage();
|
$lang = $user->getLanguage();
|
||||||
if (strlen($lang)==0) {
|
if (strlen($lang)==0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user