dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be27083
)
Follow up r69081. Use wfEmptyMsg() rather than the ugly comparison.
author
Philip Tzou
<philip@users.mediawiki.org>
Tue, 6 Jul 2010 07:29:41 +0000
(07:29 +0000)
committer
Philip Tzou
<philip@users.mediawiki.org>
Tue, 6 Jul 2010 07:29:41 +0000
(07:29 +0000)
languages/LanguageConverter.php
patch
|
blob
|
history
diff --git
a/languages/LanguageConverter.php
b/languages/LanguageConverter.php
index
efde3a3
..
3aa08e0
100644
(file)
--- a/
languages/LanguageConverter.php
+++ b/
languages/LanguageConverter.php
@@
-552,8
+552,9
@@
class LanguageConverter {
} else {
// first let's check if a message has given us a converted name
$nsConvKey = 'conversion-ns' . $index;
- $text = wfMsgForContentNoTrans( $nsConvKey );
- if ( $text == '<' . htmlspecialchars( $nsConvKey ) . '>' ) {
+ if ( !wfEmptyMsg( $nsConvKey ) ) {
+ $text = wfMsgForContentNoTrans( $nsConvKey );
+ } else {
// the message does not exist, try retrieve it from the current
// variant's namespace names.
$langObj = $this->mLangObj->factory( $variant );