[BUGFIX] Fix l10n identifier string in date validator of EXT:form 93/43493/3
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Wed, 23 Sep 2015 07:40:49 +0000 (09:40 +0200)
committerSteffen Müller <typo3@t3node.com>
Fri, 13 Nov 2015 22:48:24 +0000 (23:48 +0100)
Resolves: #69354
Releases: 6.2
Change-Id: Ie99cff4bb300056b57dad0f33412b184d8d3c7d6
Reviewed-on: https://review.typo3.org/43493
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/form/Classes/Validation/DateValidator.php

index 42b79da..24d8fde 100644 (file)
@@ -126,7 +126,7 @@ class DateValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator {
         * @return string Human readable format
         */
        protected function humanReadableDateFormat($format) {
-               $label = get_class($this) . '.strftime.';
+               $label = self::LOCALISATION_OBJECT_NAME . '.strftime.';
                $pairs = array(
                        '%A' => $this->localizationHandler->getLocalLanguageLabel($label . 'A'),
                        '%a' => $this->localizationHandler->getLocalLanguageLabel($label . 'a'),