mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 05:51:28 +01:00
Fix: ajout du filtre png lors de l'affichage de l'icone pdf
This commit is contained in:
@@ -3053,7 +3053,7 @@ class Form
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recupe liste des fichiers
|
// 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);
|
$file_list=dolibarr_dir_list($filedir,'files',0,'','\.meta$'.$png,'date',SORT_DESC);
|
||||||
|
|
||||||
// Affiche en-tete tableau si non deja affich<63>
|
// Affiche en-tete tableau si non deja affich<63>
|
||||||
|
|||||||
@@ -2246,7 +2246,7 @@ function dolibarr_dir_list($path, $types="all", $recursive=0, $filter="", $exclu
|
|||||||
while (false !== ($file = readdir($dir)))
|
while (false !== ($file = readdir($dir)))
|
||||||
{
|
{
|
||||||
$qualified=1;
|
$qualified=1;
|
||||||
|
|
||||||
// Check if file is qualified
|
// Check if file is qualified
|
||||||
if (eregi('^\.',$file)) $qualified=0;
|
if (eregi('^\.',$file)) $qualified=0;
|
||||||
if ($excludefilter && eregi($excludefilter,$file)) $qualified=0;
|
if ($excludefilter && eregi($excludefilter,$file)) $qualified=0;
|
||||||
|
|||||||
Reference in New Issue
Block a user