MINOR Fixed wrong _t() notation in ChangePasswordForm (broken in r103226 and r104596) (from r104598)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112356 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 00:30:46 +00:00
parent 079167ccac
commit 3a6b79a6f3
2 changed files with 4 additions and 6 deletions

View File

@ -412,10 +412,7 @@ $lang['en_US']['Member']['INTERFACELANG'] = array(
PR_MEDIUM,
'Language of the CMS'
);
$lang['en_US']['Member']['INVALIDNEWPASSWORD'] = array(
'We couldn\'t accept that password: %s',
nl2br("\n".$isValid->starredList(
);
$lang['en_US']['Member']['INVALIDNEWPASSWORD'] = 'We couldn\'t accept that password: %s';
$lang['en_US']['Member']['LOGGEDINAS'] = 'You\'re logged in as %s.';
$lang['en_US']['Member']['MOBILE'] = 'Mobile';
$lang['en_US']['Member']['NAME'] = 'Name';

View File

@ -114,8 +114,9 @@ class ChangePasswordForm extends Form {
} else {
$this->clearMessage();
$this->sessionMessage(
_t('Member.INVALIDNEWPASSWORD', "We couldn't accept that password: %s", nl2br("\n".$isValid->starredList())),
"bad");
sprintf(_t('Member.INVALIDNEWPASSWORD', "We couldn't accept that password: %s"), nl2br("\n".$isValid->starredList())),
"bad"
);
Director::redirectBack();
}