X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=d7ba266fea5640aa2e0995558a1eb22b1b6b85d5;hb=5c6a0cf57d98ed517b9470ba21e5b9e6141e0ea8;hp=d65e8be59f2cc6a173486e0f00373f79474c62aa;hpb=929fad38095b1e10dae3d7af385afd4bfd223c25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index d65e8be59f..d7ba266fea 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4636,7 +4636,7 @@ class Parser { $anchor = $safeHeadline; $legacyAnchor = $legacyHeadline; if ( isset( $refers[$arrayKey] ) ) { - // @codingStandardsIgnoreStart + // @codingStandardsIgnoreStart for ( $i = 2; isset( $refers["${arrayKey}_$i"] ); ++$i ); // @codingStandardsIgnoreEnd $anchor .= "_$i"; @@ -4645,7 +4645,7 @@ class Parser { $refers[$arrayKey] = true; } if ( $legacyHeadline !== false && isset( $refers[$legacyArrayKey] ) ) { - // @codingStandardsIgnoreStart + // @codingStandardsIgnoreStart for ( $i = 2; isset( $refers["${legacyArrayKey}_$i"] ); ++$i ); // @codingStandardsIgnoreEnd $legacyAnchor .= "_$i"; @@ -4793,7 +4793,7 @@ class Parser { $sections[0] = $sections[0] . $toc . "\n"; } - $full .= join( '', $sections ); + $full .= implode( '', $sections ); if ( $this->mForceTocPosition ) { return str_replace( '', $toc, $full );