2
0
forked from Wavyzz/dolibarr

Task #838 - change regex to look at ods document too

This commit is contained in:
JF FERRY
2013-04-21 14:55:32 +02:00
parent ab2709f684
commit fcf1eeba20
2 changed files with 2 additions and 2 deletions

View File

@@ -1283,7 +1283,7 @@ function getListOfModels($db,$type,$maxfilenamelength=0)
if (! $tmpdir) { unset($listofdir[$key]); continue; }
if (is_dir($tmpdir))
{
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.odt','','name',SORT_ASC,0,true); // Disable hook for the moment
$tmpfiles=dol_dir_list($tmpdir,'files',0,'\.od(s|t)$','','name',SORT_ASC,0,true); // Disable hook for the moment
if (count($tmpfiles)) $listoffiles=array_merge($listoffiles,$tmpfiles);
}
}