X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FMWTidy.php;h=ffc884eb2d561af98f2af238599170f6fd92edf9;hp=5e5461587b9d0648802d9a088a981314760abaa3;hb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;hpb=356b3420d6908f91510aa0cd94f3a363be7f8999 diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index 5e5461587b..ffc884eb2d 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -83,7 +83,7 @@ class MWTidy { /** * @return bool|\MediaWiki\Tidy\TidyDriverBase */ - protected static function singleton() { + public static function singleton() { global $wgUseTidy, $wgTidyInternal, $wgTidyConf, $wgDebugTidy, $wgTidyConfig, $wgTidyBin, $wgTidyOpts; @@ -138,6 +138,9 @@ class MWTidy { case 'Html5Internal': $instance = new MediaWiki\Tidy\Html5Internal( $config ); break; + case 'RemexHtml': + $instance = new MediaWiki\Tidy\RemexDriver( $config ); + break; case 'disabled': return false; default: