[TYPO3-core] TCAmain and $LANG

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu May 3 10:48:27 CEST 2007


In t3lib_tcemain there are currently two occurences of $LANG.

prependLabel() uses it if present, but has a *hm* out-dated fallback.

checkValue_flex() uses it directly without a fallback.

But the comments on top say this:

  * Dependencies:
  * - $GLOBALS['LANG'] (languageobject) may be preferred, but not fatal.

Bug #5550 shows that we need another refernece to $LANG (well to t3lib_cs, 
but $LANG has one).

What do you think how we should resolve this? Shall we simply make TCAmain 
depend on $LANG or shall checkValue_flex() get a fallback to iso-8859-1?


More information about the TYPO3-team-core mailing list