Index: typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php =================================================================== --- typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php (revision 10328) +++ typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php (revision ) @@ -113,8 +113,8 @@ * @var string */ protected $checkOptHtml; - - + + /** * Html for the Statistics table with the checkboxes of the link types and the numbers of broken links for Check links tab. * @@ -178,11 +178,11 @@ $this->initialize(); // Setting up the context sensitive menu: $this->resPath = $this->doc->backPath . t3lib_extMgm::extRelPath('linkvalidator') . 'res/'; + /** @var t3lib_pageRenderer $pageRenderer */ $this->pageRenderer = $this->doc->getPageRenderer(); // Localization - $labels = tx_em_Tools::getArrayFromLocallang(t3lib_extMgm::extPath('linkvalidator', 'modfuncreport/locallang.xml')); - $this->pageRenderer->addInlineLanguageLabelArray($labels); + $this->pageRenderer->addInlineLanguageLabelFile(t3lib_extMgm::extPath('linkvalidator', 'modfuncreport/locallang.xml')); // Add JS $this->pageRenderer->addJsFile($this->doc->backPath . '../t3lib/js/extjs/ux/Ext.ux.FitToParent.js'); Index: typo3/sysext/em/classes/tools/class.tx_em_tools.php =================================================================== --- typo3/sysext/em/classes/tools/class.tx_em_tools.php (revision 10595) +++ typo3/sysext/em/classes/tools/class.tx_em_tools.php (revision ) @@ -619,6 +619,20 @@ } /** + * Reads locallang file into array (for possible include in header) + * + * @param $file + * @return array + * @deprecated since TYPO3 4.5.1, will be removed in TYPO3 4.7 - use pageRenderer->addInlineLanguageLabelFile() instead + */ + public static function getArrayFromLocallang($file, $key = 'default') { + $content = t3lib_div::getURL($file); + $array = t3lib_div::xml2array($content); + + return $array['data'][$key]; + } + + /** * Include a locallang file and return the $LOCAL_LANG array serialized. * * @param string Absolute path to locallang file to include.