X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ftidy%2FRaggettWrapper.php;h=ab19142cc442283f1cabae8dca3889ae495ba0d9;hp=4759023fbf0710ed94d526dd395cace29eeb23fa;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=2c97164bf842465ca5fc310414f7c0bbc7c7993f diff --git a/includes/tidy/RaggettWrapper.php b/includes/tidy/RaggettWrapper.php index 4759023fbf..ab19142cc4 100644 --- a/includes/tidy/RaggettWrapper.php +++ b/includes/tidy/RaggettWrapper.php @@ -40,13 +40,13 @@ class RaggettWrapper { // Replace elements with placeholders $wrappedtext = preg_replace_callback( ParserOutput::EDITSECTION_REGEX, - array( &$this, 'replaceCallback' ), $text ); + [ &$this, 'replaceCallback' ], $text ); // ...and markers $wrappedtext = preg_replace_callback( '/\<\\/?mw:toc\>/', - array( &$this, 'replaceCallback' ), $wrappedtext ); + [ &$this, 'replaceCallback' ], $wrappedtext ); // ... and tags $wrappedtext = preg_replace_callback( '/\/s', - array( &$this, 'replaceCallback' ), $wrappedtext ); + [ &$this, 'replaceCallback' ], $wrappedtext ); // Modify inline Microdata and elements so they say and so // we can trick Tidy into not stripping them out by including them in tidy's new-empty-tags config $wrappedtext = preg_replace( '!<(link|meta)([^>]*?)(/{0,1}>)!', '