diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index 5051dff5021b92f2196b2fc7669f261346bc88c2..3ecc5e5d43d28730b5191f1dadb9e3d6a602b1c0 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -290,7 +290,7 @@ class CRM_Utils_PDF_Utils { foreach (['font_dir', 'chroot', 'log_output_file'] as $setting) { $value = \Civi::settings()->get("dompdf_$setting"); if (isset($value)) { - $settings[$setting] = $value; + $settings[$setting] = Civi::paths()->getPath($value); } } @@ -315,7 +315,7 @@ class CRM_Utils_PDF_Utils { $cacheDir = $settings['font_dir'] . DIRECTORY_SEPARATOR . 'font_cache'; } else { - $cacheDir = Civi::paths()->getPath('[civicrm.files]/upload/font_cache'); + $cacheDir = CRM_Core_Config::singleton()->uploadDir . '/font_cache'; } // Try to create dir if it doesn't exist or return empty string if ((!is_dir($cacheDir)) && (!mkdir($cacheDir))) {