Correzione percorso per retrocompatibilità

Errore sulle variabili, non veniva utilizzata la stampa nel formato della 2.2 e precedenti
This commit is contained in:
loviuz 2017-12-21 14:57:46 +01:00 committed by GitHub
parent 6c820a175f
commit c7539ad686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ if (!$old_format) {
$font_size = '10pt';
// Decido se usare la stampa personalizzata (se esiste) oppure quella standard
if (file_exists($ptype.'/custom/pdfgen.'.$ptype.'.php')) {
if (file_exists($docroot.'/templates/'.$ptype.'/custom/pdfgen.'.$ptype.'.php')) {
include $docroot.'/templates/'.$ptype.'/custom/pdfgen.'.$ptype.'.php';
} else {
include $docroot.'/templates/'.$ptype.'/pdfgen.'.$ptype.'.php';