Index: t3lib/class.t3lib_recordlist.php =================================================================== --- t3lib/class.t3lib_recordlist.php (Revision 6495) +++ t3lib/class.t3lib_recordlist.php (Arbeitskopie) @@ -118,7 +118,7 @@ if (isset($GLOBALS['BE_USER']->uc['titleLen']) && $GLOBALS['BE_USER']->uc['titleLen'] > 0) { $this->fixedL = $GLOBALS['BE_USER']->uc['titleLen']; } - $this->translateTools = t3lib_div::makeInstance('t3lib_transl8tools'); + $this->getTranslateTools(); } @@ -380,7 +380,7 @@ 'sys_language_uid' ); - $this->languageIconTitles = $this->translateTools->getSystemLanguages($this->id, $this->backPath); + $this->languageIconTitles = $this->getTranslateTools()->getSystemLanguages($this->id, $this->backPath); } /** @@ -393,6 +393,18 @@ return ($this->languageIconTitles[$sys_language_uid]['flagIcon'] ? ' ' : ''). htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); } + + /** + * Gets an instance of t3lib_transl8tools. + * + * @return t3lib_transl8tools + */ + protected function getTranslateTools() { + if (!isset($this->translateTools)) { + $this->translateTools = t3lib_div::makeInstance('t3lib_transl8tools'); + } + return $this->translateTools; + } }