Don't use the 'noarticletext' message for pages in the MediaWiki namespace, it hides...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 19 Jan 2009 16:09:06 +0000 (16:09 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 19 Jan 2009 16:09:06 +0000 (16:09 +0000)
includes/Article.php

index 3e413ca..524c5c3 100644 (file)
@@ -849,7 +849,9 @@ class Article {
                                if( $oldid ) {
                                        $d = wfMsgExt( 'missingarticle-rev', 'escape', $oldid );
                                        $text = wfMsgExt( 'missing-article', 'parsemag', $t, $d );
-                               } else {
+                               // Always use page content for pages in the MediaWiki namespace
+                               // since it contains the default message
+                               } elseif ( $this->mTitle->getNamespace() != NS_MEDIAWIKI ) {
                                        $text = wfMsgExt( 'noarticletext', 'parsemag' );
                                }
                        }