Skip to content
Snippets Groups Projects
Commit 4aad7122 authored by Charles Benke's avatar Charles Benke
Browse files

add odt feature on supplier admin page

add odt feature on supplier admin page
parent 8630a2d5
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment