Rewrite TidySupport and add option --use-tidy-config
[lhc/web/wiklou.git] / includes / parser / MWTidy.php
index f281c25..a47e002 100644 (file)
@@ -135,6 +135,8 @@ class MWTidy {
                                case 'Html5Internal':
                                        self::$instance = new MediaWiki\Tidy\Html5Internal( $config );
                                        break;
+                               case 'disabled':
+                                       return false;
                                default:
                                        throw new MWException( "Invalid tidy driver: \"{$config['driver']}\"" );
                        }