summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-06-13 15:15:09 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-06-13 15:15:09 +0200
commitd5d3c70ea0a16af0acf9aefa5152f63cbafa96b2 (patch)
treecd2e6f448787c674c3326eae7e96c16be760ad4a /program
parent65c3bb0bab5b2fc39617e90b3be22f81e63e929f (diff)
Set skin in js environment
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index adeaaef6d..e779f5a34 100644
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -77,7 +77,9 @@ class rcube_template extends rcube_html_page
$this->set_env('x_frame_options', $this->app->config->get('x_frame_options', 'sameorigin'));
// load the correct skin (in case user-defined)
- $this->set_skin($this->config['skin']);
+ $skin = $this->app->config->get('skin', 'default');
+ $this->set_skin($skin);
+ $this->set_env('skin', $skin);
// add common javascripts
$this->add_script('var '.JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top');