Bug #21615 ยป 0012669.patch
t3lib/class.t3lib_recordlist.php (Arbeitskopie) | ||
---|---|---|
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();
|
||
}
|
||
... | ... | |
'sys_language_uid'
|
||
);
|
||
$this->languageIconTitles = $this->translateTools->getSystemLanguages($this->id, $this->backPath);
|
||
$this->languageIconTitles = $this->getTranslateTools()->getSystemLanguages($this->id, $this->backPath);
|
||
}
|
||
/**
|
||
... | ... | |
return ($this->languageIconTitles[$sys_language_uid]['flagIcon'] ? '<img src="'.$this->languageIconTitles[$sys_language_uid]['flagIcon'].'" class="absmiddle" alt="" /> ' : '').
|
||
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;
|
||
}
|
||
}
|
||