Fix CRM_Utils_PDF_Utils::_html2pdf_dompdf() when invoked more than once
authorOlaf Buddenhagen <antrik@digitalcourage.de>
Sat, 20 Jun 2015 22:49:12 +0000 (00:49 +0200)
committerOlaf Buddenhagen <antrik@digitalcourage.de>
Sat, 20 Jun 2015 23:28:58 +0000 (01:28 +0200)
commit383b23e336bb25b193dd56acdeeb191bb72ebedc
tree1f3dd29bbf75dc492c3847b623440184a52593c3
parentb7440df523a7f263bfd30dc241e5d1eb33422650
Fix CRM_Utils_PDF_Utils::_html2pdf_dompdf() when invoked more than once

Constants are like functions: they are always global; and they cannot
be redefined. Thus, move the defines to a context that doesn't get
re-evaluated on each invocation.
CRM/Utils/PDF/Utils.php