2009-11-24 Oliver Hader <oliver@typo3.org>
* Follow-up to bugfix #12699: Fixed remaining styling issues in the backend login
+ * Fixed bug #12669: Fatal error: Call to a member function getSystemLanguages()
2009-11-24 Steffen Kamper <info@sk-typo3.de>
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;
+ }
}