http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88287
Revision: 88287
Author: siebrand
Date: 2011-05-17 08:17:44 +0000 (Tue, 17 May 2011)
Log Message:
-----------
* remove unneeded behavior change for action=info in NS_MEDIAWIKI.
* remove superfluous whitespace and update FIXME notation.
Modified Paths:
--------------
trunk/phase3/includes/Article.php
Modified: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php 2011-05-17 07:50:27 UTC (rev 88286)
+++ trunk/phase3/includes/Article.php 2011-05-17 08:17:44 UTC (rev 88287)
@@ -4051,17 +4051,10 @@
if ( !$this->mTitle->exists() ) {
$wgOut->addHTML( '<div class="noarticletext">' );
- if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
- // This doesn't quite make sense; the user is
asking for
- // information about the _page_, not the
message... -- RC
- $wgOut->addHTML( htmlspecialchars(
$this->mTitle->getDefaultMessageText() ) );
- } else {
- $msg = $wgUser->isLoggedIn()
- ? 'noarticletext'
- : 'noarticletextanon';
- $wgOut->addWikiMsg( $msg );
- }
-
+ $msg = $wgUser->isLoggedIn()
+ ? 'noarticletext'
+ : 'noarticletextanon';
+ $wgOut->addWikiMsg( $msg );
$wgOut->addHTML( '</div>' );
} else {
$dbr = wfGetDB( DB_SLAVE );
@@ -4077,8 +4070,7 @@
$pageInfo = $this->pageCountInfo( $page );
$talkInfo = $this->pageCountInfo( $page->getTalkPage()
);
-
- //FIXME: unescaped messages
+ // @todo FIXME: unescaped messages
$wgOut->addHTML( "<ul><li>" . wfMsg( "numwatchers",
$wgLang->formatNum( $numwatchers ) ) . '</li>' );
$wgOut->addHTML( "<li>" . wfMsg( 'numedits',
$wgLang->formatNum( $pageInfo['edits'] ) ) . '</li>' );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs