Fix for new Parserus
Request errors not with text, but with an array for translation.
This commit is contained in:
parent
18ea8f76d9
commit
e83f5a7c22
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue