X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FLinkHolderArray.php;h=d2a0a1a6d457b5b7f38d4257c11a58442d25fc4c;hb=e92ea2ef79957faf518f07b65fadd86131814051;hp=b32f43b893f13f635d1de643236a0931eeff5b80;hpb=e3f6c10d87732c0c8a9bbd7bb57b6c964b92e29a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index b32f43b893..d2a0a1a6d4 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -267,10 +267,8 @@ class LinkHolderArray { * @param string $text */ public function replace( &$text ) { - $this->replaceInternal( $text ); $this->replaceInterwiki( $text ); - } /** @@ -414,7 +412,6 @@ class LinkHolderArray { $replacer->cb(), $text ); - } /** @@ -614,10 +611,9 @@ class LinkHolderArray { * @return string */ public function replaceText( $text ) { - $text = preg_replace_callback( '//', - [ &$this, 'replaceTextCallback' ], + [ $this, 'replaceTextCallback' ], $text ); return $text;