]> git.donarmstrong.com Git - roundcube.git/blobdiff - plugins/markasjunk/markasjunk.php
Imported Debian patch 0.5.2+dfsg-1
[roundcube.git] / plugins / markasjunk / markasjunk.php
index cf81883fc106ac16cb6bf12fee29e7c2a0ed49f4..697d880ca2738e8e75214f60ee00e3a045e8286f 100644 (file)
@@ -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');
     }
   }