From: Tim Starling Date: Fri, 4 Sep 2009 02:40:53 +0000 (+0000) Subject: Fixed a bug whereby if a recache is triggered via getSubitem(), the subitem requested... X-Git-Tag: 1.31.0-rc.0~39944 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=e3b87e0916b3380ca591d0d9466f4df1b8f2dbd9;p=lhc%2Fweb%2Fwiklou.git Fixed a bug whereby if a recache is triggered via getSubitem(), the subitem requested will be saved into the process cache as missing. --- diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 22159fd59d..d50e1a7c1d 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -275,7 +275,9 @@ class LocalisationCache { $this->initLanguage( $code ); } // Check to see if initLanguage() loaded it for us - if ( isset( $this->loadedSubitems[$code][$key][$subkey] ) ) { + if ( isset( $this->loadedItems[$code][$key] ) + || isset( $this->loadedSubitems[$code][$key][$subkey] ) ) + { return; } if ( isset( $this->shallowFallbacks[$code] ) ) {