BUG 10083 skins not being remembered after logout IMPROVEMENT
- According to the specifications. - Was add cookie for save skin of workspace.
This commit is contained in:
@@ -446,7 +446,11 @@ class Bootstrap
|
|||||||
}
|
}
|
||||||
|
|
||||||
define ( "SYS_LANG", $args ['SYS_LANG'] );
|
define ( "SYS_LANG", $args ['SYS_LANG'] );
|
||||||
define ( "SYS_SKIN", $args ['SYS_SKIN'] );
|
if (isset($_COOKIE['workspaceSkin'])) {
|
||||||
|
define('SYS_SKIN', $_COOKIE['workspaceSkin']);
|
||||||
|
} else {
|
||||||
|
define('SYS_SKIN', $args ['SYS_SKIN']);
|
||||||
|
}
|
||||||
define ( 'SYS_COLLECTION', $args ['SYS_COLLECTION'] );
|
define ( 'SYS_COLLECTION', $args ['SYS_COLLECTION'] );
|
||||||
define ( 'SYS_TARGET', $args ['SYS_TARGET'] );
|
define ( 'SYS_TARGET', $args ['SYS_TARGET'] );
|
||||||
|
|
||||||
|
|||||||
@@ -249,13 +249,6 @@ try {
|
|||||||
$sLocation = $_REQUEST['u'];
|
$sLocation = $_REQUEST['u'];
|
||||||
} else {
|
} else {
|
||||||
$sLocation = $oUserProperty->redirectTo($_SESSION['USER_LOGGED'], $lang);
|
$sLocation = $oUserProperty->redirectTo($_SESSION['USER_LOGGED'], $lang);
|
||||||
if (isset($_COOKIE['workspaceSkin'])) {
|
|
||||||
if (substr(SYS_SKIN, 0, 2) == 'ux') {
|
|
||||||
$sLocation = str_replace(SYS_SKIN."/main", $_COOKIE['workspaceSkin']."/setup/main", $sLocation);
|
|
||||||
} else {
|
|
||||||
$sLocation = str_replace(SYS_SKIN, $_COOKIE['workspaceSkin'], $sLocation);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user