dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix types around ILoadBalancer and IResultWrapper"
[lhc/web/wiklou.git]
/
includes
/
MagicWord.php
diff --git
a/includes/MagicWord.php
b/includes/MagicWord.php
index
3c77234
..
0984786
100644
(file)
--- 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->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();
}
/**
}
/**