* (bug 23448) MediaWiki:Summary-preview is now displayed instead of MediaWiki:Subject...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 9 May 2010 12:41:57 +0000 (12:41 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 9 May 2010 12:41:57 +0000 (12:41 +0000)
Regression from r59655.

RELEASE-NOTES
includes/EditPage.php

index d52e19f..c356ce6 100644 (file)
@@ -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
index e9db1e4..f6b6cb5 100644 (file)
@@ -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 );
        }