From b65683a0883a49a542766a5bd431d0643fb65ae9 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 17 Mar 2018 21:33:32 -0700 Subject: [PATCH] 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 --- includes/parser/MWTidy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()" ); } } -- 2.20.1