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/%24dirpuce/%27%241/%40%20%27entree_login%27%20=%3E%20%27Your%20login%27%2C%20%27entree_login_connexion_1%27%20=%3E%20%27Connection%20login%27%2C%20%27entree_login_connexion_2%27%20=%3E%20%27%28Sometimes%20matches%20your%20FTP%20account%20login%20and%20sometimes%20left%20empty%29%27%2C-%27entree_login_ldap%27%20=%3E%20%27Initial%20LDAP%20login%27%2C%20%27entree_mot_passe%27%20=%3E%20%27Your%20password%27%2C%20%27entree_mot_passe_1%27%20=%3E%20%27Password%27%2C%20%27entree_mot_passe_2%27%20=%3E%20%27%28Sometimes%20matches%20your%20FTP%20access%20password%20and%20sometimes%20left%20empty%29%27%2C%40%40%20-150%2C7%20%20121%2C7%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?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()" ); } }