From: Philip Tzou Date: Tue, 6 Jul 2010 07:29:41 +0000 (+0000) Subject: Follow up r69081. Use wfEmptyMsg() rather than the ugly comparison. X-Git-Tag: 1.31.0-rc.0~36246 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=ad88d6e00595f71833a3e9e0cf7e294066b09786;p=lhc%2Fweb%2Fwiklou.git Follow up r69081. Use wfEmptyMsg() rather than the ugly comparison. --- diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index efde3a3f60..3aa08e006b 100644 --- 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 );