diff options
author | alecpl <alec@alec.pl> | 2009-04-27 09:29:57 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-04-27 09:29:57 +0000 |
commit | 89635b9dd8095b3e03f966cf43e860d9dc100a64 (patch) | |
tree | b3c675a92c5b9e00fa64443197a87fcdae09afed /plugins | |
parent | 23387ef8534035a7495224f003009bfef77846a5 (diff) |
- remove _confirm function
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/password/password.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/password/password.php b/plugins/password/password.php index 1ff755bfd..f10c43ca9 100644 --- a/plugins/password/password.php +++ b/plugins/password/password.php @@ -104,7 +104,7 @@ class password extends rcube_plugin { $rcmail = rcmail::get_instance(); - $confirm = $this->_confirm($rcmail->config); + $confirm = $rcmail->config->get('password_confirm_current'); $this->add_texts('localization/'); if (($confirm && !isset($_POST['_curpasswd'])) || !isset($_POST['_newpasswd'])) @@ -130,7 +130,7 @@ class password extends rcube_plugin { $rcmail = rcmail::get_instance(); - $confirm = $this->_confirm($rcmail->config); + $confirm = $rcmail->config->get('password_confirm_current'); // add some labels to client $rcmail->output->add_label( 'password.nopassword', @@ -201,12 +201,6 @@ class password extends rcube_plugin ), $out); } - private function _confirm($cfg) { - $val = $cfg->get('password_confirm_current'); - //return empty($val) || $val; - return $val; - } - private function _save($curpass,$passwd) { $cfg = rcmail::get_instance()->config; |