Don't parse the section summary when creating a page by adding a new section.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 19 Sep 2012 19:29:11 +0000 (21:29 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 19 Sep 2012 19:29:11 +0000 (21:29 +0200)
Related to I9a56b7c6 (9e6aba6). Fix for Ifa80db1d (8d4913e).

Change-Id: I8772461451a4239c16a5450cccaf1e7696a3f740

includes/EditPage.php

index 782b763..d3b670d 100644 (file)
@@ -1244,7 +1244,7 @@ class EditPage {
                        if ( $this->section == 'new' ) {
                                if ( $this->sectiontitle !== '' ) {
                                        // Insert the section title above the content.
-                                       $text = wfMessage( 'newsectionheaderdefaultlevel', $this->sectiontitle )
+                                       $text = wfMessage( 'newsectionheaderdefaultlevel' )->rawParams( $this->sectiontitle )
                                                ->inContentLanguage()->text() . "\n\n" . $text;
 
                                        // Jump to the new section
@@ -1260,7 +1260,7 @@ class EditPage {
                                        }
                                } elseif ( $this->summary !== '' ) {
                                        // Insert the section title above the content.
-                                       $text = wfMessage( 'newsectionheaderdefaultlevel', $this->summary )
+                                       $text = wfMessage( 'newsectionheaderdefaultlevel' )->rawParams( $this->summary )
                                                ->inContentLanguage()->text() . "\n\n" . $text;
 
                                        // Jump to the new section