CRM-19339: Can't create invoice PDF in Chrome and Firefox, This site can't be reached...
authordeb.monish <monish.deb@webaccessglobal.com>
Thu, 15 Sep 2016 14:02:59 +0000 (19:32 +0530)
committerdeb.monish <monish.deb@webaccessglobal.com>
Thu, 15 Sep 2016 14:08:55 +0000 (19:38 +0530)
CRM/Contribute/Form/Task/Invoice.php

index 1debcaa6c4917b6faa8a4d4c72d793eca6ab9f81..4193ef46c8cc283d502fec6e6fd642f439ce38ac 100644 (file)
@@ -25,6 +25,7 @@
  +--------------------------------------------------------------------+
  */
 
+use Dompdf\Dompdf;
 /**
  *
  * @package CRM
@@ -642,7 +643,6 @@ 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') {
-    require_once "vendor/dompdf/dompdf/dompdf_config.inc.php";
     $doc = new DOMPDF();
     $doc->load_html($html);
     $doc->render();