X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=plugins%2Fmarkasjunk%2Fmarkasjunk.php;h=697d880ca2738e8e75214f60ee00e3a045e8286f;hb=511160353722ebec8c258ddd6fa963ec8851eede;hp=cf81883fc106ac16cb6bf12fee29e7c2a0ed49f4;hpb=e8a0682b96f5b7f297e58d101735ba20a0cc3a89;p=roundcube.git diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php index cf81883..697d880 100644 --- a/plugins/markasjunk/markasjunk.php +++ b/plugins/markasjunk/markasjunk.php @@ -6,7 +6,7 @@ * Sample plugin that adds a new button to the mailbox toolbar * to mark the selected messages as Junk and move them to the Junk folder * - * @version 1.0 + * @version @package_version@ * @author Thomas Bruederli */ class markasjunk extends rcube_plugin @@ -15,9 +15,10 @@ class markasjunk extends rcube_plugin function init() { - $this->register_action('plugin.markasjunk', array($this, 'request_action')); - $rcmail = rcmail::get_instance(); + + $this->register_action('plugin.markasjunk', array($this, 'request_action')); + if ($rcmail->action == '' || $rcmail->action == 'show') { $skin_path = $this->local_skin_path(); $this->include_script('markasjunk.js'); @@ -26,7 +27,9 @@ class markasjunk extends rcube_plugin 'command' => 'plugin.markasjunk', 'imagepas' => $skin_path.'/junk_pas.png', 'imageact' => $skin_path.'/junk_act.png', - 'title' => 'markasjunk.buttontitle'), 'toolbar'); + 'width' => 32, + 'height' => 32, + 'title' => 'markasjunk.buttontitle'), 'toolbar'); } }