From: Timo Tijhof Date: Sun, 18 Mar 2018 04:33:32 +0000 (-0700) Subject: parser: Update MWTidy::checkErrors() error message X-Git-Tag: 1.31.0-rc.0~324^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=b65683a0883a49a542766a5bd431d0643fb65ae9;p=lhc%2Fweb%2Fwiklou.git parser: Update MWTidy::checkErrors() error message When setting the following on PHP 7, the produced error message did not make sense (references something about HHVM). > $wgValidateAllHtml = true > $wgTidyConfig = ['driver' => 'RemexHtml']; Change-Id: I5f14505639a79aca66f570a9a00c38cdea0cc1ba --- diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index ffc884eb2d..330859d4b5 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -69,7 +69,7 @@ class MWTidy { 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()" ); } }