[BUGFIX] Call LOCALISATION_OBJECT_NAME 'static'ally
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Validation / LengthValidator.php
index 95c062e..42f7318 100644 (file)
@@ -115,7 +115,7 @@ class LengthValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator {
         * @see \TYPO3\CMS\Form\Validation\AbstractValidator::_getLocalLanguageLabel()
         */
        protected function getLocalLanguageLabel($type) {
-               $label = self::LOCALISATION_OBJECT_NAME . '.' . $type;
+               $label = static::LOCALISATION_OBJECT_NAME . '.' . $type;
                $messages[] = $this->localizationHandler->getLocalLanguageLabel($label);
                if ($this->maximum !== NULL) {
                        $messages[] = $this->localizationHandler->getLocalLanguageLabel($label . '2');