Bug #16865
closedt3lib_div - PATH_typo3 problem for localizations
0%
Description
I cannot exactly explain what was going on - it's strange...
t3lib_div has some functions to load locallang-files. If such a file has never been created/cached, it's going to be newly created. And this one uses the function t3lib_div::llXmlAutoFileName(...).
But: llXmlAutoFileName has some parts with "PATH_typo3" in it, and this definition isn't set in frontend at all.
The result: e.g. the german translation of indexed_search couldn't be fetched from typo3conf/l10n/de/indexed_search because of matching errors depending on a missing "PATH_typo3" definition.
The strange thing: If have TYPO3 sites, running 4.1beta2 and 4.0.4, where this doesn't occur - possibly there are extensions setting the PATH_typo3 or whatever...
(issue imported from #M4803)
Files
Updated by Oliver Hader almost 18 years ago
According to bug 0004562, define the PATH_typo3 isn't a good idea.
The attached patch 0004803.patch replaces "PATH_typo3" by "PATH_site.TYPO3_mainDir".
Updated by Oliver Hader almost 18 years ago
Updated by Oliver Hader almost 18 years ago
Masi provided a patch for that on defining the constant PATH_typo3. Thanks Masi!
It was commited to svn trunk (see http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/6441).