packages is already in include_path
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 13 Jul 2020 23:09:23 +0000 (19:09 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 13 Jul 2020 23:09:23 +0000 (19:09 -0400)
CRM/Utils/PDF/Utils.php
CRM/Utils/ReCAPTCHA.php

index c5cf7003f1ea851739c8fda568369a2f59e62155..6fc9959b8605fce66fa9a7553c4f88c91508b0db 100644 (file)
@@ -207,7 +207,7 @@ class CRM_Utils_PDF_Utils {
    * @param string $fileName
    */
   public static function _html2pdf_wkhtmltopdf($paper_size, $orientation, $margins, $html, $output, $fileName) {
-    require_once 'packages/snappy/src/autoload.php';
+    require_once 'snappy/src/autoload.php';
     $config = CRM_Core_Config::singleton();
     $snappy = new Knp\Snappy\Pdf($config->wkhtmltopdfPath);
     $snappy->setOption("page-width", $paper_size[2] . "pt");
index 93747f7b130ef7e801d42bc06abd38ed858404c5..14c4272f9ddc43b9a00ae8751e351585a7675132 100644 (file)
@@ -78,7 +78,7 @@ class CRM_Utils_ReCAPTCHA {
     $config = CRM_Core_Config::singleton();
     $useSSL = FALSE;
     if (!function_exists('recaptcha_get_html')) {
-      require_once 'packages/recaptcha/recaptchalib.php';
+      require_once 'recaptcha/recaptchalib.php';
     }
 
     // Load the Recaptcha api.js over HTTPS