From: Brad Jorsch Date: Mon, 1 Jul 2013 20:31:53 +0000 (-0400) Subject: Clear shallowFallbacks in LocalisationCache::unload X-Git-Tag: 1.31.0-rc.0~19293^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=316bbe97ca6e0dbba92693369d8f63b3a36a9f1a;p=lhc%2Fweb%2Fwiklou.git Clear shallowFallbacks in LocalisationCache::unload When a language code is unloaded, it also needs to clear the shallowFallbacks entry. Otherwise the next time that language is used it will incorrectly think that the other setup done by initShallowFallbacks is still set up, leading to warnings. Change-Id: Idf6a78f56a3bb864cc921427ac82972594610047 --- diff --git a/includes/cache/LocalisationCache.php b/includes/cache/LocalisationCache.php index bdc2d78e55..1bfd17bde5 100644 --- a/includes/cache/LocalisationCache.php +++ b/includes/cache/LocalisationCache.php @@ -928,6 +928,7 @@ class LocalisationCache { unset( $this->loadedItems[$code] ); unset( $this->loadedSubitems[$code] ); unset( $this->initialisedLangs[$code] ); + unset( $this->shallowFallbacks[$code] ); foreach ( $this->shallowFallbacks as $shallowCode => $fbCode ) { if ( $fbCode === $code ) {