From 8087766997d7444c05b73aec3121d22cb9542490 Mon Sep 17 00:00:00 2001 From: forecho Date: Thu, 28 Apr 2016 14:46:41 +0800 Subject: [PATCH] fix message --- CodeValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeValidator.php b/CodeValidator.php index 3fa277f..7c3c3ab 100644 --- a/CodeValidator.php +++ b/CodeValidator.php @@ -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')); } } } \ No newline at end of file