Skip to content

Commit

Permalink
Reset internal $skins property is set_skin()
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Sep 8, 2019
1 parent 5373f18 commit b10a0db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions program/include/rcmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ protected function startup()
$required_plugins = array('filesystem_attachments', 'jqueryui');
$this->plugins->load_plugins($plugins, $required_plugins);

// Remember default skin, before it's replaced by user prefs
$this->default_skin = $this->config->get('skin');

// start session
$this->session_init();

// Remember default skin, before it's replaced by user prefs
$this->default_skin = $this->config->get('skin');

// create user object
$this->set_user(new rcube_user($_SESSION['user_id']));

Expand Down
1 change: 1 addition & 0 deletions program/include/rcmail_output_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public function set_skin($skin)

// register skin path(s)
$this->skin_paths = array();
$this->skins = array();
$this->load_skin($skin_path);

$this->skin_name = $skin;
Expand Down
2 changes: 2 additions & 0 deletions program/lib/Roundcube/rcube_plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,11 @@ public function local_skin_path()
{
$rcube = rcube::get_instance();
$skins = array_keys((array)$rcube->output->skins);

if (empty($skins)) {
$skins = (array) $rcube->config->get('skin');
}

foreach ($skins as $skin) {
$skin_path = 'skins/' . $skin;
if (is_dir(realpath(slashify($this->home) . $skin_path))) {
Expand Down

0 comments on commit b10a0db

Please sign in to comment.