Aleksander Machniak
2015-10-13 570f43c87484c68631c1180743bed5cc0cbb7d24
Don't load enigma and managesieve css where it's not needed
2 files modified
9 ■■■■■ changed files
plugins/enigma/enigma.php 5 ●●●● patch | view | raw | blame | history
plugins/managesieve/managesieve.php 4 ●●●● patch | view | raw | blame | history
plugins/enigma/enigma.php
@@ -80,7 +80,10 @@
//            $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui'));
            $this->load_ui();
            $this->ui->add_css();
            if (empty($_REQUEST['_framed']) || strpos($this->rc->action, 'plugin.enigma') === 0) {
                $this->ui->add_css();
            }
        }
        $this->add_hook('refresh', array($this, 'refresh'));
plugins/managesieve/managesieve.php
@@ -84,10 +84,10 @@
        // 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");
        }