[TYPO3-core] RFC #10075: Bug: Rootline cache does not work in multilingual websites
Francois Suter
fsuter at cobweb.ch
Wed Jan 7 14:38:50 CET 2009
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=10075
Branches:
4_2 and Trunk
Problem:
The rootline cache (in class t3lib_pageSelect) was made to work properly
in TYPO3 since version 4.2.2. However this introduced a bug: the cache
does not take the language into account. So if you calculate the
rootline for a given page in a given language, this rootline will be
reused for any other language. This is wrong since
t3lib_pageSelect::getRootLine() is expected to return a properly
overlaid rootline.
Solution:
Add the current language (as stored in $this->sys_language_uid) to the
keys used to store the rootline in cache.
Notes:
I have added the language as the second dimension of the cache array,
before the mount point info, as it seemed more logical. It could added
after it, however. I don't think it changes much.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug10075.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090107/aa233573/attachment.txt
More information about the TYPO3-team-core
mailing list