X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpasswordsettings.php;h=37877931ea2e3557bb0950b8d9aecc752a158ae0;hb=382e4d2cdbd2dbfa211077fb9bce35441b8743cd;hp=3bb8e3bb9f9d1e6fedf058c27c8e2ceb4877e9b6;hpb=ce46cce73ef8e1c60888755586919afdf9afee14;p=quix0rs-gnu-social.git diff --git a/actions/passwordsettings.php b/actions/passwordsettings.php index 3bb8e3bb9f..37877931ea 100644 --- a/actions/passwordsettings.php +++ b/actions/passwordsettings.php @@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/accountsettingsaction.php'; + /** * Change password @@ -45,7 +45,7 @@ require_once INSTALLDIR.'/lib/accountsettingsaction.php'; * @link http://status.net/ */ -class PasswordsettingsAction extends AccountSettingsAction +class PasswordsettingsAction extends SettingsAction { /** * Title of the page @@ -106,11 +106,11 @@ class PasswordsettingsAction extends AccountSettingsAction } $this->elementStart('li'); $this->password('newpassword', _('New password'), - _('6 or more characters')); + _('6 or more characters.')); $this->elementEnd('li'); $this->elementStart('li'); $this->password('confirm', _('Confirm'), - _('Same as password above')); + _('Same as password above.')); $this->elementEnd('li'); $this->elementEnd('ul'); @@ -128,7 +128,6 @@ class PasswordsettingsAction extends AccountSettingsAction * * @return void */ - function handlePost() { // CSRF protection @@ -183,7 +182,7 @@ class PasswordsettingsAction extends AccountSettingsAction } if (!$user->update($original)) { - $this->serverError(_('Can\'t save new password.')); + $this->serverError(_('Cannot save new password.')); return; } Event::handle('EndChangePassword', array($user));