Skip to content

Commit

Permalink
make makefile for docs compatible with php 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Jul 1, 2017
1 parent f6dc9d4 commit e885361
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e885361

Please sign in to comment.