Skip to content

Commit

Permalink
Update PhoneInputValidator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sample-game committed Mar 18, 2016
1 parent 25e2df5 commit 3fd29b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhoneInputValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function clientValidateAttribute($model, $attribute, $view) {

$telInputId = Html::getInputId($model, $attribute);
$options = Json::htmlEncode([
'message' => Yii::$app->getI18n()->format($this->message, [
'message' => \Yii::$app->getI18n()->format($this->message, [
'attribute' => $model->getAttributeLabel($attribute)
], Yii::$app->language)
], \Yii::$app->language)
]);

return <<<JS
Expand Down

0 comments on commit 3fd29b7

Please sign in to comment.