From 2a06df770e6a05e709a88a60758de74712fdfbd8 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 30 Jan 2016 19:11:50 +0100 Subject: [PATCH] Add FIX_BROKEN_PDF in constant.php by default it is NO --- include/constant.php | 4 ++++ include/lib/config_file.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/constant.php b/include/constant.php index 7397b443f..655e629ec 100644 --- a/include/constant.php +++ b/include/constant.php @@ -250,6 +250,10 @@ else define ('PDFTK','NOT'); } +// If it is not a mono folder it is a multi one +if ( !defined('MULTI')) { + define('MULTI',1); +} define ('JS_INFOBULLE','
diff --git a/include/lib/config_file.php b/include/lib/config_file.php index 94f18244d..f24379d5e 100644 --- a/include/lib/config_file.php +++ b/include/lib/config_file.php @@ -187,6 +187,9 @@ function display_file_config($p_array,$from_setup=1,$p_os=1) print ( '// define ("NOALYSS_INCLUDE","");'); print ("\r\n"); print ( '// define ("NOALYSS_TEMPLATE","");'); + print ( "// Fix an issue with PDF when exporting receipt in PDF in ANCGL"."\r\n"); + print ( '// define ("FIX_BROKEN_PDF","NO");'); + print ("\r\n"); print ("\r\n"); print ("\r\n"); print ("\r\n");