Changeset 2492 in subversion


Ignore:
Timestamp:
May 16, 2009 10:28:47 AM (4 years ago)
Author:
alec
Message:
  • set pagetitle in php not js, hu_HU locale
Location:
trunk/roundcubemail/plugins/password
Files:
1 added
2 edited

Legend:

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

    r2401 r2492  
    3434    }, true); 
    3535  }) 
    36  
    37     // set page title 
    38     if (rcmail.env.action == 'plugin.password' && rcmail.env.task == 'settings') { 
    39       var title = rcmail.gettext('changepasswd','password') 
    40       if (rcmail.env.product_name) 
    41         title = rcmail.env.product_name + ' :: ' + title; 
    42       rcmail.set_pagetitle(title); 
    43     } 
    4436} 
  • trunk/roundcubemail/plugins/password/password.php

    r2491 r2492  
    9898  { 
    9999    $this->add_texts('localization/'); 
    100     rcmail::get_instance()->output->send('plugin'); 
     100    $rcmail = rcmail::get_instance(); 
     101    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
     102    $rcmail->output->send('plugin'); 
    101103  } 
    102104   
     
    105107    $rcmail = rcmail::get_instance(); 
    106108 
     109    $this->add_texts('localization/'); 
    107110    $confirm = $rcmail->config->get('password_confirm_current'); 
    108     $this->add_texts('localization/'); 
     111    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
    109112 
    110113    if (($confirm && !isset($_POST['_curpasswd'])) || !isset($_POST['_newpasswd'])) 
     
    124127 
    125128    rcmail_overwrite_action('plugin.password'); 
    126     rcmail::get_instance()->output->send('plugin'); 
     129    $rcmail->output->send('plugin'); 
    127130  } 
    128131 
     
    136139        'password.nopassword', 
    137140        'password.nocurpassword', 
    138         'password.passwordinconsistency', 
    139         'password.changepasswd' 
     141        'password.passwordinconsistency' 
    140142    ); 
    141 //    $rcmail->output->set_pagetitle($this->gettext('changepasswd')); 
     143 
    142144    $rcmail->output->set_env('product_name', $rcmail->config->get('product_name')); 
    143145 
Note: See TracChangeset for help on using the changeset viewer.