git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6dc9d4
)
make makefile for docs compatible with php 5.6
author
gggeek
<giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 19:15:42 +0000
(20:15 +0100)
committer
gggeek
<giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 19:15:42 +0000
(20:15 +0100)
doc/convert.php
patch
|
blob
|
history
diff --git
a/doc/convert.php
b/doc/convert.php
index
8e7f7f0
..
1894c2f
100644
(file)
--- 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