X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FMWTidy.php;h=19cf5731579104c4ba6448864de1cdef433b4229;hb=54d50ef3921dc9f30dc4d863ddc471dc564998e9;hp=330859d4b575bdf930feeb1ed74fd050d94eb298;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index 330859d4b5..19cf573157 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -52,27 +52,6 @@ class MWTidy { return $driver->tidy( $text ); } - /** - * Check HTML for errors, used if $wgValidateAllHtml = true. - * - * @param string $text - * @param string &$errorStr Return the error string - * @return bool Whether the HTML is valid - * @throws MWException - */ - public static function checkErrors( $text, &$errorStr = null ) { - $driver = self::singleton(); - if ( !$driver ) { - throw new MWException( __METHOD__ . - ': tidy is disabled, caller should have checked MWTidy::isEnabled()' ); - } - if ( $driver->supportsValidate() ) { - return $driver->validate( $text, $errorStr ); - } else { - throw new MWException( __METHOD__ . ": tidy driver does not support validate()" ); - } - } - /** * @return bool */