Don't load enigma and managesieve css where it's not needed
| | |
| | | // $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui')); |
| | | |
| | | $this->load_ui(); |
| | | |
| | | if (empty($_REQUEST['_framed']) || strpos($this->rc->action, 'plugin.enigma') === 0) { |
| | | $this->ui->add_css(); |
| | | } |
| | | } |
| | | |
| | | $this->add_hook('refresh', array($this, 'refresh')); |
| | | } |
| | |
| | | |
| | | // include styles |
| | | $skin_path = $this->local_skin_path(); |
| | | if ($this->rc->task == 'settings' || $sieve_action) { |
| | | if ($sieve_action || ($this->rc->task == 'settings' && empty($_REQUEST['_framed']))) { |
| | | $this->include_stylesheet("$skin_path/managesieve.css"); |
| | | } |
| | | else { |
| | | else if ($this->rc->task == 'mail') { |
| | | $this->include_stylesheet("$skin_path/managesieve_mail.css"); |
| | | } |
| | | |