Bonjour,
Correction sur fonction img_picto_common
Remplacer
if (file_exists($themepath)) $path = $themepath;
par
if (file_exists($themepath)) {
$themepath = DOL_URL_ROOT.’/theme/’.$conf->theme.’/img/’.$picto;
$path = $themepath;
}
Cordialement,
Bonjour,
Pour quel problème rencontré ? Quel fichier ?
Cordialement,
XP
Salut,
Dans le cas on ne veut pas utiliser les images de theme/common
on doit remplacer
$path = DOL_URL_ROOT.’/theme/common/’.$picto;
par
$path = DOL_URL_ROOT.’/theme/’.$conf->theme.’/img/’.$picto;
et non pas par $path = $themepath car $themepath = DOL_DOCUMENT_ROOT.’/theme/’.$conf->theme.’/img/’.$picto;.
DOL_DOCUMENT_ROOT sert uniquement pour file_exists($themepath) mais pas pour valoriser $path.
Je ne sais pas si je suis suffisamment clair. En tout cas cela fonctionne correctement après modification de la fonction mes images s’affichent sinon pas d’images.
Cordialement,