summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-21 07:30:27 +0000
committeralecpl <alec@alec.pl>2009-05-21 07:30:27 +0000
commit5d90e1dfe2b2fbca330c204c6f43bc8a926d9b4d (patch)
tree632914656acac9783dd74bffcc7ea07f24887759
parenta393c37c4fdda083dc2afd525b489fe78a38ce0e (diff)
- moved some code from init() to start()
-rw-r--r--plugins/managesieve/managesieve.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 18001c0e7..ae92ff975 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -43,10 +43,9 @@ class managesieve extends rcube_plugin
{
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 @@ class managesieve extends rcube_plugin
function init()
{
- $rcmail = rcmail::get_instance();
- $this->rc = &$rcmail;
-
// add Tab label/title
$this->add_texts('localization/', array('filters','managefilters'));
@@ -74,6 +70,9 @@ class managesieve extends rcube_plugin
function managesieve_start()
{
+ $rcmail = rcmail::get_instance();
+ $this->rc = &$rcmail;
+
// register UI objects
$this->rc->output->add_handlers(array(
'filterslist' => array($this, 'filters_list'),