[BUGFIX] Fix "enabled" in array representation of SiteLanguage 51/57951/4
authorBenni Mack <benni@typo3.org>
Fri, 17 Aug 2018 12:46:40 +0000 (14:46 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 17 Aug 2018 14:25:34 +0000 (16:25 +0200)
A minor issue with the wrong property when calling enabled()
vs. "isEnabled()" was introduced.

Resolves: #85164
Releases: master
Change-Id: I99afd802db480c6c4b03263c5972867a4273020e
Reviewed-on: https://review.typo3.org/57951
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php

index 318e8ce..2ad4b89 100644 (file)
@@ -176,7 +176,7 @@ class SiteLanguage
             'typo3Language' => $this->getTypo3Language(),
             'flagIdentifier' => $this->getFlagIdentifier(),
             'fallbackType' => $this->getFallbackType(),
-            'hidden' => $this->isEnabled(),
+            'enabled' => $this->enabled(),
             'fallbackLanguageIds' => $this->getFallbackLanguageIds(),
         ];
     }