Commit f007d754 authored by Andy Hausmann's avatar Andy Hausmann

Fixed bug #19. Compatibility issue with TYPO3 v4.5.x.

Former used l10n parser class 't3lib_l10n_parser_Llxml' is just
available since TYPO3 v4.6.
parent cfd45e52
......@@ -75,9 +75,17 @@ class flexslider_pi1_wizicon
*/
protected function includeLocalLang()
{
$l10nParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$llFile = t3lib_extMgm::extPath($this->extKey) . 'Resources/Private/Language/locallang_be.xml';
return $l10nParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
$l10n = t3lib_div::makeInstance('language');
$l10n->init($GLOBALS['LANG']->lang);
$l10nArr = $l10n->includeLLFile($llFile, false);
// Removed following lines, because this will only work with TYPO3 4.6+
//$l10nParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
//return $l10nParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
return $l10nArr;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment