From 4f281083fda91879a77fb87d64d8a9533526bd0c Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Wed, 10 Dec 2014 11:08:18 -0700 Subject: [PATCH] hhvm: Check for tidy function instead of class Bug: T78166 Change-Id: Ie60e23ffbafd698a3458eed1efce92d54c8d0c2a --- includes/parser/MWTidy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index 7b699d21e5..8ec324ccba 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -246,7 +246,9 @@ class MWTidy { global $wgTidyConf, $wgDebugTidy; wfProfileIn( __METHOD__ ); - if ( !class_exists( 'tidy' ) ) { + if ( !class_exists( 'tidy' ) || + ( wfIsHHVM() && !function_exists('tidy_repair_string') ) + ) { wfWarn( "Unable to load internal tidy class." ); $retval = -1; -- 2.20.1