Fix: ajout du filtre png lors de l'affichage de l'icone pdf

This commit is contained in:
Regis Houssin 2007-07-14 15:37:06 +00:00
parent 4ea2d7fcc7
commit f6defad5ec
2 changed files with 2 additions and 2 deletions

View File

@ -3053,7 +3053,7 @@ class Form
}
// Recupe liste des fichiers
if ($iconPDF==1) $png = '\.png$';
if ($iconPDF==1) $png = '|\.png$';
$file_list=dolibarr_dir_list($filedir,'files',0,'','\.meta$'.$png,'date',SORT_DESC);
// Affiche en-tete tableau si non deja affiché

View File

@ -2246,7 +2246,7 @@ function dolibarr_dir_list($path, $types="all", $recursive=0, $filter="", $exclu
while (false !== ($file = readdir($dir)))
{
$qualified=1;
// Check if file is qualified
if (eregi('^\.',$file)) $qualified=0;
if ($excludefilter && eregi($excludefilter,$file)) $qualified=0;