From: Alexandre Emsenhuber Date: Sun, 25 Dec 2011 20:23:54 +0000 (+0000) Subject: Use 'newsectionheaderdefaultlevel' message when previewing a new section so that... X-Git-Tag: 1.31.0-rc.0~25757 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=631847513cb6b370bdf3ecca42f271a8ac9ec5db;p=lhc%2Fweb%2Fwiklou.git Use 'newsectionheaderdefaultlevel' message when previewing a new section so that it renders the same as when saving the page --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 392d0fbeb1..558c6cd6c3 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2447,7 +2447,7 @@ HTML # If we're adding a comment, we need to show the # summary as the headline if ( $this->section == "new" && $this->summary != "" ) { - $toparse = "== {$this->summary} ==\n\n" . $toparse; + $toparse = wfMsgForContent( 'newsectionheaderdefaultlevel', $this->summary ) . "\n\n" . $toparse; } wfRunHooks( 'EditPageGetPreviewText', array( $this, &$toparse ) );