X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=blobdiff_plain;f=languages%2FLanguage.php;h=ff0cc121b4da1a8f7d6a93a09ff13fbad6f3c5b4;hb=b801fa8b3b3b42fb6db9129d4642f6e583b56879;hp=b531f2a376c4ece038cea40d1c0915b0b091b062;hpb=50ee9585c0513b3319d70cdeb1b92161cbcfcf32;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index b531f2a376..ff0cc121b4 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -415,6 +415,16 @@ class Language { */ public function setNamespaces( array $namespaces ) { $this->namespaceNames = $namespaces; + $this->mNamespaceIds = null; + } + + /** + * Resets all of the namespace caches. Mainly used for testing + */ + public function resetNamespaces( ) { + $this->namespaceNames = null; + $this->mNamespaceIds = null; + $this->namespaceAliases = null; } /**