Follow up r69081. Use wfEmptyMsg() rather than the ugly comparison.
authorPhilip Tzou <philip@users.mediawiki.org>
Tue, 6 Jul 2010 07:29:41 +0000 (07:29 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Tue, 6 Jul 2010 07:29:41 +0000 (07:29 +0000)
languages/LanguageConverter.php

index efde3a3..3aa08e0 100644 (file)
@@ -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 == '&lt;' . htmlspecialchars( $nsConvKey ) . '&gt;' ) {
+                       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 );