Use 'newsectionheaderdefaultlevel' message when previewing a new section so that...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Dec 2011 20:23:54 +0000 (20:23 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 25 Dec 2011 20:23:54 +0000 (20:23 +0000)
includes/EditPage.php

index 392d0fb..558c6cd 100644 (file)
@@ -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 ) );