Skip to content

Commit ad4330b

Browse files
[form] translate message for CSRF form element
1 parent da4a639 commit ad4330b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/form/element/CSRF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function validate($value)
4848
$isValid = $value && ($value === $this->getValidToken());
4949

5050
if (!$isValid) {
51-
$this->messages = ['Invalid csrf token.'];
51+
$this->messages = [$this->translate('Invalid csrf token.')];
5252
}
5353

5454
return $isValid;

0 commit comments

Comments
 (0)