Commit 11812af1 by Alexander Makarov

Fixed formatting, initialized options array

parent 91f61bfc
......@@ -351,7 +351,8 @@ class FileValidator extends Validator
{
$label = $object->getAttributeLabel($attribute);
if ( $this->message !== null ){
$options = [];
if ($this->message !== null) {
$options['message'] = Yii::$app->getI18n()->format($this->message, [
'attribute' => $label,
], Yii::$app->language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment