X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMessage.php;h=3bd775537f523162de705726fcc4bd8556e11a04;hb=19b8dbfda2c1b8b24160afb6053efffd8b5db86d;hp=e2fe254f60d10c032bae2b479bc990babdf8dd91;hpb=e66bef06b293868f7a61a6c3b3e20067bf938471;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Message.php b/includes/Message.php index e2fe254f60..3bd775537f 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -473,13 +473,13 @@ class Message implements MessageSpecifier, Serializable { global $wgForceUIMsgAsContentMsg; $contLang = MediaWikiServices::getInstance()->getContentLanguage(); + $lang = $this->getLanguage(); $title = $this->key; if ( - !$this->language->equals( $contLang ) + !$lang->equals( $contLang ) && in_array( $this->key, (array)$wgForceUIMsgAsContentMsg ) ) { - $code = $this->language->getCode(); - $title .= '/' . $code; + $title .= '/' . $lang->getCode(); } return Title::makeTitle(