[BUGFIX] Call LOCALISATION_OBJECT_NAME 'static'ally 15/36315/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 26 Jan 2015 15:00:21 +0000 (16:00 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 27 Jan 2015 20:42:13 +0000 (21:42 +0100)
Use static:: instead of self:: to call the constant
LOCALISATION_OBJECT_NAME.

Resolves: #64506
Releases: master, 6.2
Change-Id: I855dd65c2ca9ca47003d5dc0816f96a89512bc62
Reviewed-on: http://review.typo3.org/36315
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/Validation/AbstractValidator.php
typo3/sysext/form/Classes/Validation/AlphabeticValidator.php
typo3/sysext/form/Classes/Validation/AlphanumericValidator.php
typo3/sysext/form/Classes/Validation/BetweenValidator.php
typo3/sysext/form/Classes/Validation/LengthValidator.php

index 0e90a3a..777801d 100644 (file)
@@ -247,7 +247,7 @@ abstract class AbstractValidator implements \TYPO3\CMS\Form\Validation\Validator
         * @return string The local language message label
         */
        protected function getLocalLanguageLabel($type) {
-               $label = self::LOCALISATION_OBJECT_NAME . '.' . $type;
+               $label = static::LOCALISATION_OBJECT_NAME . '.' . $type;
                $message = $this->localizationHandler->getLocalLanguageLabel($label);
                return $message;
        }
index b564330..45d61b3 100644 (file)
@@ -96,7 +96,7 @@ class AlphabeticValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator {
         * @see \TYPO3\CMS\Form\Validation\AbstractValidator::_getLocalLanguageLabel()
         */
        protected function getLocalLanguageLabel() {
-               $label = self::LOCALISATION_OBJECT_NAME . '.message';
+               $label = static::LOCALISATION_OBJECT_NAME . '.message';
                $messages[] = $this->localizationHandler->getLocalLanguageLabel($label);
                if ($this->allowWhiteSpace) {
                        $messages[] = $this->localizationHandler->getLocalLanguageLabel($label . '2');
index 545702d..dc592bb 100644 (file)
@@ -89,7 +89,7 @@ class AlphanumericValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator
         * @see \TYPO3\CMS\Form\Validation\AbstractValidator::_getLocalLanguageLabel()
         */
        protected function getLocalLanguageLabel() {
-               $label = self::LOCALISATION_OBJECT_NAME . '.message';
+               $label = static::LOCALISATION_OBJECT_NAME . '.message';
                $messages[] = $this->localizationHandler->getLocalLanguageLabel($label);
                if ($this->allowWhiteSpace) {
                        $messages[] = $this->localizationHandler->getLocalLanguageLabel($label . '2');
index f837ccf..1d20223 100644 (file)
@@ -128,7 +128,7 @@ class BetweenValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator impl
         * @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->inclusive) {
                        $messages[] = $this->localizationHandler->getLocalLanguageLabel($label . '2');
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');