Use OutputPage::addWikiMsg() instead of OutputPage::addHTML() with wfMsgExt()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 20 Apr 2011 11:44:01 +0000 (11:44 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 20 Apr 2011 11:44:01 +0000 (11:44 +0000)
includes/Article.php

index bd20b6e..1b1f46c 100644 (file)
@@ -4018,7 +4018,7 @@ class Article {
                                $msg = $wgUser->isLoggedIn()
                                        ? 'noarticletext'
                                        : 'noarticletextanon';
-                               $wgOut->addHTML( wfMsgExt( $msg, 'parse' ) );
+                               $wgOut->addWikiMsg( $msg );
                        }
 
                        $wgOut->addHTML( '</div>' );