From: Brion Vibber Date: Fri, 7 Jul 2006 22:15:44 +0000 (+0000) Subject: * Don't put empty-page message into view-source when page text is blank X-Git-Tag: 1.31.0-rc.0~56355 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ffb37bdfff362935d3cef3dd1b630a2f9241e359;p=lhc%2Fweb%2Fwiklou.git * Don't put empty-page message into view-source when page text is blank --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 37e575d12a..05501c7d41 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -36,6 +36,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Added linktrail to Telugu (te) * (bug 6586) Regression in "unblocked" subtitle * Update to Hungarian translation (hu) +* Don't put empty-page message into view-source when page text is blank + == Compatibility == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 31a0781a3f..8de5372a5d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -828,7 +828,7 @@ class OutputPage { if ( $wgTitle->getNamespace() == NS_MEDIAWIKI ) { $source = wfMsgWeirdKey ( $wgTitle->getText() ); } else { - $source = wfMsg( $wgUser->isLoggedIn() ? 'noarticletext' : 'noarticletextanon' ); + $source = ''; } } $rows = $wgUser->getIntOption( 'rows' );