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

ChangeLog
t3lib/class.t3lib_page.php

index e0509ab..3d028ed 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-05  Steffen Kamper  <info@sk-typo3.de> 
 
        * Fixed bug #10055: Add contrib directory to list of allowed paths (thanks to Dan Osipov)  
index a21c369..2dba7e7 100755 (executable)
@@ -549,8 +549,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:
@@ -663,7 +663,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;
        }