From 305dbc23a5d0b4962da2aecc4c49cc96d58cb02f Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 12 Jul 2013 22:39:59 +0200 Subject: [PATCH] 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 --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1