[Svn] r2511 - trunk/roundcubemail/plugins/managesieve

trac at roundcube.net trac at roundcube.net
Thu May 21 09:30:27 CEST 2009


Author: alec
Date: 2009-05-21 02:30:27 -0500 (Thu, 21 May 2009)
New Revision: 2511

Modified:
   trunk/roundcubemail/plugins/managesieve/managesieve.php
Log:
- moved some code from init() to start()


Modified: trunk/roundcubemail/plugins/managesieve/managesieve.php
===================================================================
--- trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-05-21 07:14:47 UTC (rev 2510)
+++ trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-05-21 07:30:27 UTC (rev 2511)
@@ -43,10 +43,9 @@
 {
   public $task = 'settings';
 
-  private $sieve;
   private $rc;
+  private $sieve;
   private $errors;
-  private $dir;
   private $form;
   private $script = array();
   private $exts = array();
@@ -58,9 +57,6 @@
 
   function init()
   {
-    $rcmail = rcmail::get_instance();
-    $this->rc = &$rcmail;
-
     // add Tab label/title
     $this->add_texts('localization/', array('filters','managefilters'));
 
@@ -74,6 +70,9 @@
   
   function managesieve_start()
   {
+    $rcmail = rcmail::get_instance();
+    $this->rc = &$rcmail;
+
     // register UI objects
     $this->rc->output->add_handlers(array(
 	'filterslist' => array($this, 'filters_list'),

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list