diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-25 15:01:30 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-25 15:01:30 +0000 |
| commit | 57ba976ab15753240275354a7e2ecbafae530da8 (patch) | |
| tree | 483f55f3ec0193139edab58ee27e895dbb465688 /roundcubemail/program | |
| parent | 8f31ff973cbc5ff16eb0378eb12c18ecec9f3beb (diff) | |
Remember custom skin selection after logout (#1488355)
git-svn-id: https://svn.roundcube.net/trunk@5904 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 9d1190ad6..05cfefa06 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -777,6 +777,10 @@ class rcmail // set initial session vars if (!$_SESSION['user_id']) $_SESSION['temp'] = true; + + // restore skin selection after logout + if ($_SESSION['temp'] && !empty($_SESSION['skin'])) + $this->config->set('skin', $_SESSION['skin']); } @@ -1221,7 +1225,7 @@ class rcmail $this->plugins->exec_hook('session_destroy'); $this->session->kill(); - $_SESSION = array('language' => $this->user->language, 'temp' => true); + $_SESSION = array('language' => $this->user->language, 'temp' => true, 'skin' => $this->config->get('skin')); $this->user->reset(); } |
