From: umherirrender Date: Fri, 12 Jul 2013 20:39:59 +0000 (+0200) Subject: Do not parse param of newsectionsummary on new section preview X-Git-Tag: 1.31.0-rc.0~18946 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=305dbc23a5d0b4962da2aecc4c49cc96d58cb02f;p=lhc%2Fweb%2Fwiklou.git Do not parse param of newsectionsummary on new section preview Summary preview of section=new shows expand templates. Using the summary text as raw param avoids this. Other usages of 'newsectionsummary' do it the same way. Bug: 40453 Change-Id: I1fd3adfc64c664dfd490c11bfe60924fa215875c --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 7049814539..7c7bfe9116 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2560,7 +2560,7 @@ class EditPage { global $wgParser; if ( $isSubjectPreview ) { - $summary = wfMessage( 'newsectionsummary', $wgParser->stripSectionName( $summary ) ) + $summary = wfMessage( 'newsectionsummary' )->rawParams( $wgParser->stripSectionName( $summary ) ) ->inContentLanguage()->text(); }