From bc92ca56ef6c51393d2782b7654eaa162dfc2e10 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 30 Jul 2012 13:20:56 +0200 Subject: Fixes after default->classic switch --- plugins/managesieve/managesieve.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/managesieve') diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index 3fb63cd5b..e7828f1da 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -109,16 +109,16 @@ class managesieve extends rcube_plugin function mail_task_handler() { // use jQuery for popup window - $this->require_plugin('jqueryui'); + $this->require_plugin('jqueryui'); // include js script and localization $this->init_ui(); // include styles - $skin = $this->rc->config->get('skin'); - if (!file_exists($this->home."/skins/$skin/managesieve_mail.css")) - $skin = 'default'; - $this->include_stylesheet("skins/$skin/managesieve_mail.css"); + $skin_path = $this->local_skin_path(); + if (is_file($this->home . "/$skin_path/managesieve_mail.css")) { + $this->include_stylesheet("$skin_path/managesieve_mail.css"); + } // add 'Create filter' item to message menu $this->api->add_content(html::tag('li', null, -- cgit v1.2.3