mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 14:58:42 +00:00
Automatically disable PHPT if version of PHP isn't supported.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1653 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
04a6b1d3f2
commit
b997076dfa
@ -29,6 +29,6 @@ if (!$AC['only-phpt']) {
|
||||
}
|
||||
|
||||
// PHPT tests
|
||||
if (!$AC['disable-phpt']) {
|
||||
if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
|
||||
$phpt_dirs[] = 'HTMLPurifier/PHPT';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user