[TYPO3-core] Patch: indexed_search and default language name
Sebastian Kurfuerst
sebastian at garbage-group.de
Sat Jan 7 18:58:10 CET 2006
Hi Dmitry,
> + $tsConfig = $GLOBALS['TSFE']->getPagesTSconfig();
> + if (is_array($tsConfig)) {
> + if (isset($tsConfig['mod.']['SHARED.']['defaultLanguage.']['title'])) {
> + $this->optValues['lang'][0] = $tsConfig['mod.']['SHARED.']['defaultLanguage.']['title'];
> + }
> + }
> +
I am not sure if this might trigger an error in PHP 5 when the TSconfig
is not set as we don't check if every sub-key exists. Does isset()
handle that?
If yes, and there are no problems with php5, +1
Greets, Sebastian
More information about the TYPO3-team-core
mailing list