[BUGFIX] added third and fourth parameter on getParsedData().
authorIvan Kartolo <ivan.kartolo@gmail.com>
Fri, 15 Apr 2016 12:39:35 +0000 (14:39 +0200)
committerIvan Kartolo <ivan.kartolo@gmail.com>
Fri, 15 Apr 2016 12:39:35 +0000 (14:39 +0200)
In TYPO3 6.2 the third and fourth parameter are not optional.
This fixes Github #6

Releases: master
Change-Id: I0ede5443d45b60d3a99faedee89fce73f3126113

pi/class.dmailsubscribe.php

index bd50dd5..10ee3da 100644 (file)
@@ -278,9 +278,9 @@ class user_dmailsubscribe
             $languageFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\LocalizationFactory');
 
                 // Read the strings in the required charset (since TYPO3 4.2)
-            $this->LOCAL_LANG = $languageFactory->getParsedData($basePath, $this->LLkey, $GLOBALS['TSFE']->renderCharset);
+            $this->LOCAL_LANG = $languageFactory->getParsedData($basePath, $this->LLkey, $GLOBALS['TSFE']->renderCharset, 0);
             if ($this->altLLkey) {
-                $this->LOCAL_LANG = $languageFactory->getParsedData($basePath, $this->altLLkey);
+                $this->LOCAL_LANG = $languageFactory->getParsedData($basePath, $this->altLLkey, '', 0);
             }
 
             // Overlaying labels from TypoScript (including fictitious language keys for non-system languages!):