From 8630a2d56b01c368187225fbdce70ec8f3717baa Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 17 Nov 2015 10:04:13 +0100 Subject: [PATCH] add odt feature on supplier admin page add odt feature on admin page --- htdocs/admin/supplier_invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/supplier_invoice.php b/htdocs/admin/supplier_invoice.php index c1b350edfee..e177f7ed628 100644 --- a/htdocs/admin/supplier_invoice.php +++ b/htdocs/admin/supplier_invoice.php @@ -365,7 +365,7 @@ foreach ($dirmodels as $reldir) { while (($file = readdir($handle))!==false) { - if (preg_match('/\.modules\.php$/i',$file) && substr($file,0,4) == 'pdf_') + if (preg_match('/\.modules\.php$/i',$file) && preg_match('/^(pdf_|doc_)/',$file)) { $name = substr($file, 4, dol_strlen($file) -16); $classname = substr($file, 0, dol_strlen($file) -12);