diff --git a/doc/convert.php b/doc/convert.php index 8e7f7f0c..1894c2f3 100644 --- a/doc/convert.php +++ b/doc/convert.php @@ -33,7 +33,14 @@ } 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