Fixed a bug whereby if a recache is triggered via getSubitem(), the subitem requested...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 4 Sep 2009 02:40:53 +0000 (02:40 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 4 Sep 2009 02:40:53 +0000 (02:40 +0000)
includes/LocalisationCache.php

index 22159fd..d50e1a7 100644 (file)
@@ -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] ) ) {