From 0d60325aee650d921ca3208fa7a9dad36eda3cd5 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 9 May 2010 12:41:57 +0000 Subject: [PATCH] * (bug 23448) MediaWiki:Summary-preview is now displayed instead of MediaWiki:Subject-preview when previewing summary Regression from r59655. --- RELEASE-NOTES | 2 ++ includes/EditPage.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d52e19f23e..c356ce6bef 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -156,6 +156,8 @@ in a negative namespace (which is invalid). * (bug 23240) Add ID to namespace selector form on Special:Watchlist * The pipe | character in urls is now escaped. * (bug 23422) mp3 files can now be moved +* (bug 23448) MediaWiki:Summary-preview is now displayed instead of + MediaWiki:Subject-preview when previewing summary === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/EditPage.php b/includes/EditPage.php index e9db1e4d74..f6b6cb5bdb 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1551,7 +1551,9 @@ HTML if ( $isSubjectPreview ) $summary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $summary ) ); - $summary = wfMsgExt( 'subject-preview', 'parseinline' ) . $sk->commentBlock( $summary, $this->mTitle, !!$isSubjectPreview ); + $message = $isSubjectPreview ? 'subject-preview' : 'summary-preview'; + + $summary = wfMsgExt( $message, 'parseinline' ) . $sk->commentBlock( $summary, $this->mTitle, $isSubjectPreview ); return Xml::tags( 'div', array( 'class' => 'mw-summary-preview' ), $summary ); } -- 2.20.1