X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMagicWord.php;h=0984786d799cbe81da7885cf5dd84dccf302abea;hb=b7131c89e9ad0d69beb5373df794e3d63e3c5cb6;hp=3c77234336c20c92c3c3132953d242c589110328;hpb=d183538c2ca8c9ad4cbddfb807acb4bcc35b24ae;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(); } /**