Fix for new Parserus

Request errors not with text, but with an array for translation.
This commit is contained in:
Visman 2021-02-24 18:44:01 +07:00
parent 18ea8f76d9
commit e83f5a7c22
2 changed files with 4 additions and 4 deletions

View file

@ -52,9 +52,9 @@ trait PostValidatorTrait
$prepare = true;
$message = $this->c->Parser->prepare($message); //????
foreach ($this->c->Parser->getErrors() as $error) {
foreach ($this->c->Parser->getErrors([], [], true) as $error) {
$prepare = false;
$v->addError($error);
$v->addError(__(...$error));
}
}

View file

@ -184,9 +184,9 @@ class Edit extends Profile
$prepare = true;
$signature = $this->c->Parser->prepare($signature, true); //????
foreach ($this->c->Parser->getErrors() as $error) {
foreach ($this->c->Parser->getErrors([], [], true) as $error) {
$prepare = false;
$v->addError($error);
$v->addError(__(...$error));
}
}