r107286 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107285‎ | r107286 | r107287 >
Date:20:23, 25 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Use 'newsectionheaderdefaultlevel' message when previewing a new section so that it renders the same as when saving the page
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -2447,7 +2447,7 @@
24482448 # If we're adding a comment, we need to show the
24492449 # summary as the headline
24502450 if ( $this->section == "new" && $this->summary != "" ) {
2451 - $toparse = "== {$this->summary} ==\n\n" . $toparse;
 2451+ $toparse = wfMsgForContent( 'newsectionheaderdefaultlevel', $this->summary ) . "\n\n" . $toparse;
24522452 }
24532453
24542454 wfRunHooks( 'EditPageGetPreviewText', array( $this, &$toparse ) );

Status & tagging log