mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
renamed $object to $model
This commit is contained in:
@ -62,7 +62,7 @@ class RegularExpressionValidator extends Validator
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function clientValidateAttribute($object, $attribute, $view)
|
||||
public function clientValidateAttribute($model, $attribute, $view)
|
||||
{
|
||||
$pattern = $this->pattern;
|
||||
$pattern = preg_replace('/\\\\x\{?([0-9a-fA-F]+)\}?/', '\u$1', $pattern);
|
||||
@ -82,7 +82,7 @@ class RegularExpressionValidator extends Validator
|
||||
'pattern' => new JsExpression($pattern),
|
||||
'not' => $this->not,
|
||||
'message' => Yii::$app->getI18n()->format($this->message, [
|
||||
'attribute' => $object->getAttributeLabel($attribute),
|
||||
'attribute' => $model->getAttributeLabel($attribute),
|
||||
], Yii::$app->language),
|
||||
];
|
||||
if ($this->skipOnEmpty) {
|
||||
|
Reference in New Issue
Block a user