X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FStringUtils.php;h=9638706dc22b7cd4490bbc128b5246f1e5f0fa96;hp=26f3c4ac6132a15b5ee802d10cd5130403f121cf;hb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;hpb=9da9bfde775cbef2bae1cccd795bb91926f82ff1 diff --git a/includes/libs/StringUtils.php b/includes/libs/StringUtils.php index 26f3c4ac61..9638706dc2 100644 --- a/includes/libs/StringUtils.php +++ b/includes/libs/StringUtils.php @@ -168,6 +168,7 @@ class StringUtils { ) { $inputPos = 0; $outputPos = 0; + $contentPos = 0; $output = ''; $foundStart = false; $encStart = preg_quote( $startDelim, '!' ); @@ -275,7 +276,7 @@ class StringUtils { // Replace instances of the separator inside HTML-like tags with the placeholder $replacer = new DoubleReplacer( $separator, $placeholder ); - $cleaned = StringUtils::delimiterReplaceCallback( '<', '>', $replacer->cb(), $text ); + $cleaned = self::delimiterReplaceCallback( '<', '>', $replacer->cb(), $text ); // Explode, then put the replaced separators back in $items = explode( $separator, $cleaned ); @@ -302,7 +303,7 @@ class StringUtils { // Replace instances of the separator inside HTML-like tags with the placeholder $replacer = new DoubleReplacer( $search, $placeholder ); - $cleaned = StringUtils::delimiterReplaceCallback( '<', '>', $replacer->cb(), $text ); + $cleaned = self::delimiterReplaceCallback( '<', '>', $replacer->cb(), $text ); // Explode, then put the replaced separators back in $cleaned = str_replace( $search, $replace, $cleaned );