X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=ea58acca95e075af0c731416ad1b6b35edef774b;hb=370bd11d455e24eec056f518601bc197ecac4c30;hp=3548da9581e7b0b9ec6f0a6ab56f464eba981323;hpb=fbb86f07d222ba6c31386472c5b792348b1c89e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 3548da9581..ea58acca95 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3944,7 +3944,7 @@ class Parser { $this->mForceTocPosition = true; # Set a placeholder. At the end we'll fill it in with the TOC. - $text = $mw->replace( '', $text, 1 ); + $text = $mw->replace( '', $text, 1 ); # Only keep the first one. $text = $mw->replace( '', $text ); @@ -4390,7 +4390,7 @@ class Parser { $full .= implode( '', $sections ); if ( $this->mForceTocPosition ) { - return str_replace( '', $toc, $full ); + return str_replace( '', $toc, $full ); } else { return $full; }