summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2010-07-14 11:00:06 (GMT)
committer Joao Ventura2010-07-14 11:00:06 (GMT)
commit9f1e4255ba5efb7b3e8b8c80be50b161b66cde2e (patch)
tree8bde27622f3fb42d28025fc2497ecd24fa172f73
parent0fec83c97bb61e5bfaef40f1e1b4cd181379703f (diff)
Fix #801974: only call spl_autoload_register when it exists
-rw-r--r--print_pdf/print_pdf.pages.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/print_pdf/print_pdf.pages.inc b/print_pdf/print_pdf.pages.inc
index 7149fa1..119854e 100644
--- a/print_pdf/print_pdf.pages.inc
+++ b/print_pdf/print_pdf.pages.inc
@@ -126,7 +126,9 @@ function _print_pdf_dompdf($print, $html, $filename) {
}
require_once($print_pdf_pdf_tool);
- spl_autoload_register('DOMPDF_autoload');
+ if (function_exists('spl_autoload_register')) {
+ spl_autoload_register('DOMPDF_autoload');
+ }
// dompdf seems to have problems with something in system.css so let's not use it
$html = preg_replace('!<link.*?modules/system/system.css.*?/>!', '', $html);