X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FWikitextContent.php;h=bc20aa002031b24a1c632c9aa8f74c61f844d9a3;hb=7ce640bd612ad49e7fa1b9f4d224a448fbc09a8e;hp=d649baf89cc743845344c7782dd6a6ec3b736593;hpb=5f7a8191d444e474b15f120b904b69fc3a151d5d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/WikitextContent.php b/includes/content/WikitextContent.php index d649baf89c..bc20aa0020 100644 --- a/includes/content/WikitextContent.php +++ b/includes/content/WikitextContent.php @@ -68,7 +68,6 @@ class WikitextContent extends TextContent { * @see Content::replaceSection() */ public function replaceSection( $sectionId, Content $with, $sectionTitle = '' ) { - $myModelId = $this->getModel(); $sectionModelId = $with->getModel(); @@ -88,7 +87,7 @@ class WikitextContent extends TextContent { if ( $sectionId === 'new' ) { # Inserting a new section $subject = $sectionTitle ? wfMessage( 'newsectionheaderdefaultlevel' ) - ->rawParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : ''; + ->plaintextParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : ''; if ( Hooks::run( 'PlaceNewSection', [ $this, $oldtext, $subject, &$text ] ) ) { $text = strlen( trim( $oldtext ) ) > 0 ? "{$oldtext}\n\n{$subject}{$text}"