Commit 73b4a87e authored by jcnventura's avatar jcnventura

Issue #1394364 by brad.bulger: use DOMPDF_FONT_CACHE when checking if dompdf's...

Issue #1394364 by brad.bulger: use DOMPDF_FONT_CACHE when checking if dompdf's fonts folder is writable.
parent 6f47a725
......@@ -185,7 +185,7 @@ function print_pdf_requirements($phase) {
);
}
elseif (basename($print_pdf_pdf_tool) == 'dompdf_config.inc.php') {
$directory = dirname($print_pdf_pdf_tool) . '/lib/fonts';
$directory = defined('DOMPDF_FONT_CACHE') ? DOMPDF_FONT_CACHE : dirname($print_pdf_pdf_tool) . '/lib/fonts';
if (!is_dir($directory) || !is_writable($directory)) {
$requirements['print_pdf_tool'] = array(
'title' => $t('DOMPDF font cache directory'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment