Do not parse param of newsectionsummary on new section preview
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 12 Jul 2013 20:39:59 +0000 (22:39 +0200)
committerIAlex <codereview@emsenhuber.ch>
Sun, 18 Aug 2013 09:37:45 +0000 (09:37 +0000)
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

index 7049814..7c7bfe9 100644 (file)
@@ -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();
                }