if ( $driver->supportsValidate() ) {
return $driver->validate( $text, $errorStr );
} else {
- throw new MWException( __METHOD__ . ": error text return from HHVM tidy is not supported" );
+ throw new MWException( __METHOD__ . ": tidy driver does not support validate()" );
}
}
/**
* @return bool|\MediaWiki\Tidy\TidyDriverBase
*/
- protected static function singleton() {
+ public static function singleton() {
global $wgUseTidy, $wgTidyInternal, $wgTidyConf, $wgDebugTidy, $wgTidyConfig,
$wgTidyBin, $wgTidyOpts;
case 'Html5Internal':
$instance = new MediaWiki\Tidy\Html5Internal( $config );
break;
+ case 'RemexHtml':
+ $instance = new MediaWiki\Tidy\RemexDriver( $config );
+ break;
case 'disabled':
return false;
default: