mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-30 19:00:10 +02: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:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user