fix a bit translate error (#13583) [skip ci]

fix a bit translate error according to English text
This commit is contained in:
LingGang Xiao
2017-02-15 17:15:11 +08:00
committed by Alexander Makarov
parent 39d3316e65
commit c3d1a189e4

View File

@ -334,7 +334,7 @@ class CountryValidator extends Validator
public function validateAttribute($model, $attribute)
{
if (!in_array($model->$attribute, ['兲朝', '墙外'])) {
$this->addError($attribute, '国家必须为 "兲朝" 或 "墙外" 中的一个。');
$this->addError($model, $attribute, '国家必须为 "兲朝" 或 "墙外" 中的一个。');
}
}
}