From 316bbe97ca6e0dbba92693369d8f63b3a36a9f1a Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 1 Jul 2013 16:31:53 -0400 Subject: [PATCH] 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 --- includes/cache/LocalisationCache.php | 1 + 1 file changed, 1 insertion(+) 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 ) { -- 2.20.1