Changeset 2583 in subversion


Ignore:
Timestamp:
May 31, 2009 7:40:07 AM (4 years ago)
Author:
alec
Message:
  • don't register body handler on plugin init (#1485888)
Location:
trunk/roundcubemail/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/plugins/password/password.php

    r2492 r2583  
    9191    $this->register_action('plugin.password', array($this, 'password_init')); 
    9292    $this->register_action('plugin.password-save', array($this, 'password_save')); 
     93    $this->include_script('password.js'); 
     94  } 
     95 
     96  function password_init() 
     97  { 
     98    $this->add_texts('localization/'); 
    9399    $this->register_handler('plugin.body', array($this, 'password_form')); 
    94     $this->include_script('password.js'); 
    95   } 
    96  
    97   function password_init() 
    98   { 
    99     $this->add_texts('localization/'); 
     100 
    100101    $rcmail = rcmail::get_instance(); 
    101102    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
     
    108109 
    109110    $this->add_texts('localization/'); 
     111    $this->register_handler('plugin.body', array($this, 'password_form')); 
     112    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
     113 
    110114    $confirm = $rcmail->config->get('password_confirm_current'); 
    111     $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
    112115 
    113116    if (($confirm && !isset($_POST['_curpasswd'])) || !isset($_POST['_newpasswd'])) 
  • trunk/roundcubemail/plugins/sasl_password/sasl_password.php

    r2491 r2583  
    2727    $this->register_action('plugin.saslpassword', array($this, 'password_init')); 
    2828    $this->register_action('plugin.saslpassword-save', array($this, 'password_save')); 
    29     $this->register_handler('plugin.body', array($this, 'password_form')); 
    3029    $this->include_script('sasl_password.js'); 
    3130  } 
     
    3433  { 
    3534    $this->add_texts('locale/'); 
     35    $this->register_handler('plugin.body', array($this, 'password_form')); 
     36 
    3637    $rcmail = rcmail::get_instance(); 
    3738    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
     
    4445 
    4546    $this->add_texts('locale/'); 
     47    $this->register_handler('plugin.body', array($this, 'password_form')); 
    4648 
    4749    if (!isset($_POST['_curpasswd']) || !isset($_POST['_newpasswd'])) { 
Note: See TracChangeset for help on using the changeset viewer.