From e3b87e0916b3380ca591d0d9466f4df1b8f2dbd9 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 4 Sep 2009 02:40:53 +0000 Subject: [PATCH] Fixed a bug whereby if a recache is triggered via getSubitem(), the subitem requested will be saved into the process cache as missing. --- includes/LocalisationCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] ) ) { -- 2.20.1