Skip to content

Commit

Permalink
Merge pull request #7 from sample-game/patch-1
Browse files Browse the repository at this point in the history
Update PhoneInputValidator.php
  • Loading branch information
Borales committed Mar 18, 2016
2 parents 25e2df5 + 3fd29b7 commit 8026903
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 8026903

Please sign in to comment.