From ffb37bdfff362935d3cef3dd1b630a2f9241e359 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Jul 2006 22:15:44 +0000 Subject: [PATCH] * Don't put empty-page message into view-source when page text is blank --- RELEASE-NOTES | 2 ++ includes/OutputPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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' ); -- 2.20.1