CRM-19382 Add in Dompdf Options use statement
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 18 Sep 2016 21:50:00 +0000 (07:50 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 18 Sep 2016 21:52:49 +0000 (21:52 +0000)
CRM/Contribute/Form/Task/Invoice.php

index 3c16191adf7e4faaa86c92209d992a3432b7086c..5d6d09565bbdb5a0fa970e4b9d0eabfa5d3d4e48 100644 (file)
@@ -26,6 +26,8 @@
  */
 
 use Dompdf\Dompdf;
+use Dompdf\Options;
+
 /**
  *
  * @package CRM
@@ -643,9 +645,9 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
    *   Name of file which is in pdf format
    */
   static public function putFile($html, $name = 'Invoice.pdf') {
-    $options = new Options;
+    $options = new Options();
     $options->set('isRemoteEnabled', TRUE);
-    
+
     $doc = new DOMPDF($options);
     $doc->load_html($html);
     $doc->render();