Fixed bug #10075: Rootline cache does not work in multilingual websites
authorFrancois Suter <francois.suter@typo3.org>
Wed, 7 Jan 2009 15:40:44 +0000 (15:40 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Wed, 7 Jan 2009 15:40:44 +0000 (15:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4660 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_page.php

index 2eabd7d..e3c338b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-07  Francois Suter <francois@typo3.org>
+
+       * Fixed bug #10075: Rootline cache does not work in multilingual websites
+
 2009-01-06  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #9374: Code in typo3/sysext/tstemplate/ts/index.php don't match with the new CGL (Thanks to Stefano Kowalke)
index 904bdbb..5063bd3 100755 (executable)
@@ -554,8 +554,8 @@ class t3lib_pageSelect {
                $cacheUid = $uid = intval($uid);
                $cacheIgnoreMPerrors = ($ignoreMPerrors ? 1 : 0);
 
-               if (is_array($this->cache_getRootLine[$cacheUid][$MP][$cacheIgnoreMPerrors])) {
-                       return $this->cache_getRootLine[$cacheUid][$MP][$cacheIgnoreMPerrors];
+               if (is_array($this->cache_getRootLine[$cacheUid][$this->sys_language_uid][$MP][$cacheIgnoreMPerrors])) {
+                       return $this->cache_getRootLine[$cacheUid][$this->sys_language_uid][$MP][$cacheIgnoreMPerrors];
                }
 
                        // Initialize:
@@ -668,7 +668,7 @@ class t3lib_pageSelect {
                }
 
                        // Note: rootline errors are not cached
-               $this->cache_getRootLine[$cacheUid][$MP][$cacheIgnoreMPerrors] = $output;
+               $this->cache_getRootLine[$cacheUid][$this->sys_language_uid][$MP][$cacheIgnoreMPerrors] = $output;
                return $output;
        }