Skip to content

Commit

Permalink
fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Apr 28, 2016
1 parent 04d8bbd commit 8087766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CodeValidator extends Validator
public function validateAttribute($model, $attribute)
{
if (!InviteCode::findOne(['code' => $model->$attribute, 'status' => InviteCode::STATUS_NOT_USE])) {
$this->addError($model, $attribute, $attribute . \Yii::t('app', "is can't use"));
$this->addError($model, $attribute, \Yii::t('app', 'This invite code is can\'t use'));
}
}
}

0 comments on commit 8087766

Please sign in to comment.