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:
Marco Antonio Nina
2012-12-13 16:33:02 -04:00
parent 12d43b2892
commit 0d59dccdb6
2 changed files with 5 additions and 8 deletions

View File

@@ -446,7 +446,11 @@ class Bootstrap
}
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_TARGET', $args ['SYS_TARGET'] );

View File

@@ -249,13 +249,6 @@ try {
$sLocation = $_REQUEST['u'];
} else {
$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);
}
}
}
}