From 631847513cb6b370bdf3ecca42f271a8ac9ec5db Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 25 Dec 2011 20:23:54 +0000 Subject: [PATCH] Use 'newsectionheaderdefaultlevel' message when previewing a new section so that it renders the same as when saving the page --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1