diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-16 14:28:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-16 14:28:47 +0000 |
| commit | 05d4629d7aaeb0cccb4aac1942ddb565e7505f79 (patch) | |
| tree | bafc41e45bcf1aa0ebbd4c6c04fbcdc782ad74bc /roundcubemail/plugins/password/password.php | |
| parent | 4e67974713aed9b86a1ff4163d28d3957ccba2ef (diff) | |
- set pagetitle in php not js, hu_HU locale
git-svn-id: https://svn.roundcube.net/trunk@2492 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/password/password.php')
| -rw-r--r-- | roundcubemail/plugins/password/password.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/roundcubemail/plugins/password/password.php b/roundcubemail/plugins/password/password.php index 0920c32f8..0763e91c5 100644 --- a/roundcubemail/plugins/password/password.php +++ b/roundcubemail/plugins/password/password.php @@ -97,15 +97,18 @@ class password extends rcube_plugin function password_init() { $this->add_texts('localization/'); - rcmail::get_instance()->output->send('plugin'); + $rcmail = rcmail::get_instance(); + $rcmail->output->set_pagetitle($this->gettext('changepasswd')); + $rcmail->output->send('plugin'); } function password_save() { $rcmail = rcmail::get_instance(); - $confirm = $rcmail->config->get('password_confirm_current'); $this->add_texts('localization/'); + $confirm = $rcmail->config->get('password_confirm_current'); + $rcmail->output->set_pagetitle($this->gettext('changepasswd')); if (($confirm && !isset($_POST['_curpasswd'])) || !isset($_POST['_newpasswd'])) $rcmail->output->command('display_message', $this->gettext('nopassword'), 'error'); @@ -123,7 +126,7 @@ class password extends rcube_plugin } rcmail_overwrite_action('plugin.password'); - rcmail::get_instance()->output->send('plugin'); + $rcmail->output->send('plugin'); } function password_form() @@ -135,10 +138,9 @@ class password extends rcube_plugin $rcmail->output->add_label( 'password.nopassword', 'password.nocurpassword', - 'password.passwordinconsistency', - 'password.changepasswd' + 'password.passwordinconsistency' ); -// $rcmail->output->set_pagetitle($this->gettext('changepasswd')); + $rcmail->output->set_env('product_name', $rcmail->config->get('product_name')); // allow the following attributes to be added to the <table> tag |
