From: gggeek Date: Sat, 1 Jul 2017 19:15:42 +0000 (+0100) Subject: make makefile for docs compatible with php 5.6 X-Git-Tag: 3.1.0~1 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=e885361eab7c181fe3b2e6923ced3de43ba3e285 make makefile for docs compatible with php 5.6 --- diff --git a/doc/convert.php b/doc/convert.php index 8e7f7f0..1894c2f 100644 --- a/doc/convert.php +++ b/doc/convert.php @@ -33,7 +33,14 @@ if (version_compare(PHP_VERSION,'5.4',"<")) } else { - $proc->setSecurityPreferences(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + if(is_callable(array($proc, 'setSecurityPreferences'))) + { + $proc->setSecurityPreferences(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + } + else + { + $proc->setSecurityPrefs(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + } } $proc->importStyleSheet($xsl); // attach the xsl rules