From: Alexandre Emsenhuber Date: Wed, 19 Sep 2012 19:29:11 +0000 (+0200) Subject: Don't parse the section summary when creating a page by adding a new section. X-Git-Tag: 1.31.0-rc.0~22302^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=18c2ec265118f105685ad6f98594abc87930b6fe;p=lhc%2Fweb%2Fwiklou.git Don't parse the section summary when creating a page by adding a new section. Related to I9a56b7c6 (9e6aba6). Fix for Ifa80db1d (8d4913e). Change-Id: I8772461451a4239c16a5450cccaf1e7696a3f740 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 782b76388b..d3b670df39 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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