From d5d3c70ea0a16af0acf9aefa5152f63cbafa96b2 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 13 Jun 2012 15:15:09 +0200 Subject: Set skin in js environment --- program/include/rcube_template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program/include') 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'); -- cgit v1.2.3