Allow replacing of own wkhtmltopdf tokens before call to token_replace() function

This commit is contained in:
Manuel Cillero 2017-07-26 19:38:49 +02:00
parent 80b805f07d
commit 10a6993b7b

View file

@ -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();