[BUGFIX] changed the class initialising, since notation only for PHP 5.5
authorIvan Kartolo <ivan.kartolo@gmail.com>
Fri, 15 Apr 2016 12:34:36 +0000 (14:34 +0200)
committerIvan Kartolo <ivan.kartolo@gmail.com>
Fri, 15 Apr 2016 12:34:36 +0000 (14:34 +0200)
This fixes Github #5

Releases: master
Change-Id: If36c1ab5ad665be6f0cba471c6b4e9121c18b7c4

pi/class.dmailsubscribe.php

index c013d94..bd50dd5 100644 (file)
@@ -275,7 +275,7 @@ class user_dmailsubscribe
         if (!$this->LOCAL_LANG_loaded && $this->scriptRelPath) {
             $basePath = 'EXT:'.$this->extKey.'/'.dirname($this->scriptRelPath).'/locallang.xml';
 
-            $languageFactory = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Localization\LocalizationFactory::class);
+            $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);