do not set default theme for user anymore, redirect to login page

if the user didn't have a theme set, it used to be set by the default
theme. This has been turned off.
This commit is contained in:
Uwe Steinmann 2018-09-05 07:15:12 +02:00
parent 5ddb14a499
commit d519990d5e

View File

@ -32,7 +32,11 @@ include("../inc/inc.ClassController.php");
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
function _printMessage($heading, $message) { /* {{{ */
global $dms, $theme;
global $session, $dms, $theme;
header("Location:../out/out.Login.php?msg=".urlencode($message));
exit;
UI::exitError($heading, $message, true);
return;
} /* }}} */
@ -152,7 +156,7 @@ else {
$sesstheme = $user->getTheme();
if (strlen($sesstheme)==0) {
$sesstheme = $settings->_theme;
$user->setTheme($sesstheme);
// $user->setTheme($sesstheme);
}
}