Thomas Bruederli
2012-06-13 d5d3c70ea0a16af0acf9aefa5152f63cbafa96b2
Set skin in js environment
1 files modified
4 ■■■ changed files
program/include/rcube_template.php 4 ●●● patch | view | raw | blame | history
program/include/rcube_template.php
@@ -77,7 +77,9 @@
        $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');