From 6a1d9c8ddcccb28e498bf6dab376c40279e6b925 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 10 Dec 2014 11:04:56 -0800 Subject: [PATCH] Fixed internalClean class/method existence check for HHVM * Follows up 4f281083fda91879a77fb87d64d8a9533526bd0c Change-Id: I5fa406ed1c4f2eefd1c22e9ab90e72655f31d162 --- includes/parser/MWTidy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index 8ec324ccba..7b537768a1 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -246,8 +246,8 @@ class MWTidy { global $wgTidyConf, $wgDebugTidy; wfProfileIn( __METHOD__ ); - if ( !class_exists( 'tidy' ) || - ( wfIsHHVM() && !function_exists('tidy_repair_string') ) + if ( ( !wfIsHHVM() && !class_exists( 'tidy' ) ) || + ( wfIsHHVM() && !function_exists( 'tidy_repair_string' ) ) ) { wfWarn( "Unable to load internal tidy class." ); $retval = -1; -- 2.20.1