From 10a6993b7b4754a3690c3ed10b108e6f929ca128 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 19:38:49 +0200 Subject: [PATCH] Allow replacing of own wkhtmltopdf tokens before call to token_replace() function --- sites/all/modules/print/print_pdf/print_pdf.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/all/modules/print/print_pdf/print_pdf.pages.inc b/sites/all/modules/print/print_pdf/print_pdf.pages.inc index a32102c..bc9e35a 100644 --- a/sites/all/modules/print/print_pdf/print_pdf.pages.inc +++ b/sites/all/modules/print/print_pdf/print_pdf.pages.inc @@ -388,7 +388,7 @@ function _print_pdf_wkhtmltopdf($print, $html, $filename = NULL) { $dpi = 96; if (function_exists('token_eplace') && !empty($print_pdf_wkhtmltopdf_options)) { - $print_pdf_wkhtmltopdf_options = token_replace($print_pdf_wkhtmltopdf_options, 'node', $print['node'], TOKEN_PREFIX, TOKEN_SUFFIX, array('clear' => TRUE)); + $print_pdf_wkhtmltopdf_options = token_replace($print_pdf_wkhtmltopdf_options, 'node', $print['node'], TOKEN_PREFIX, TOKEN_SUFFIX, array('clear' => FALSE)); } $version = _print_pdf_wkhtmltopdf_version();