Permalink
Browse files

BUGFIX Avoid empty validation messages in ForumMemberProfile for loca…

…les other than en_US, by providing a fallback to _t()
  • Loading branch information...
1 parent fbb6250 commit ca29448826c9d358608430221f1f4095bb6a6a23 @chillu chillu committed Sep 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/ForumMemberProfile.php
@@ -505,7 +505,7 @@ function dosave($data, $form) {
if($nicknameCheck) {
$form->addErrorMessage("Blurb",
- _t('ForumMemberProfile.NICKNAMEEXISTS'),
+ _t('ForumMemberProfile.NICKNAMEEXISTS','Sorry, that nickname already exists. Please choose another.'),
"bad");
Director::redirectBack();
return;

0 comments on commit ca29448

Please sign in to comment.