dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5e5ec4
)
hhvm: Check for tidy function instead of class
author
Bryan Davis
<bd808@wikimedia.org>
Wed, 10 Dec 2014 18:08:18 +0000
(11:08 -0700)
committer
Bryan Davis
<bd808@wikimedia.org>
Wed, 10 Dec 2014 18:08:18 +0000
(11:08 -0700)
Bug: T78166
Change-Id: Ie60e23ffbafd698a3458eed1efce92d54c8d0c2a
includes/parser/MWTidy.php
patch
|
blob
|
history
diff --git
a/includes/parser/MWTidy.php
b/includes/parser/MWTidy.php
index
7b699d2
..
8ec324c
100644
(file)
--- 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;