X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMagicWord.php;h=0984786d799cbe81da7885cf5dd84dccf302abea;hb=f0d5dceb2cc6a83fb105aa7586fbc1e23b02d70f;hp=3c77234336c20c92c3c3132953d242c589110328;hpb=7621b57d958d0753236221227cbfb519d7faf192;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 3c77234336..0984786d79 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -109,11 +109,7 @@ class MagicWord { $this->mId = $id; $this->mSynonyms = (array)$syn; $this->mCaseSensitive = $cs; - $this->contLang = $contLang; - - if ( !$contLang ) { - $this->contLang = MediaWikiServices::getInstance()->getContentLanguage(); - } + $this->contLang = $contLang ?: MediaWikiServices::getInstance()->getContentLanguage(); } /**