From 3fd29b7bc11c10bfa332f6d95fe803d47c287e41 Mon Sep 17 00:00:00 2001 From: sample-game Date: Fri, 18 Mar 2016 10:03:24 +0300 Subject: [PATCH] Update PhoneInputValidator.php --- src/PhoneInputValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhoneInputValidator.php b/src/PhoneInputValidator.php index 2e1c1f1..8bc2aa2 100644 --- a/src/PhoneInputValidator.php +++ b/src/PhoneInputValidator.php @@ -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 <<