Skip to content
Extraits de code Groupes Projets
Valider bb1d620a rédigé par cerdic's avatar cerdic
Parcourir les fichiers

permettre d'appliquer les filtres sur les icones du back

parent 56898452
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -17,7 +17,9 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) {
if (ereg("^" . _DIR_IMG, $nom)) {
$nom = substr($nom,strlen(_DIR_IMG));
} else if (ereg("^" . _DIR_IMG_ICONES_DIST, $nom)) {
} else if (ereg("^" . _DIR_IMG_PACK, $nom)) {
$nom = substr($nom,strlen(_DIR_IMG_PACK));
} else if (ereg("^" . _DIR_IMG_ICONES_DIST, $nom)) {
$nom = substr($nom,strlen(_DIR_IMG_ICONES_DIST));
}
$pos = strrpos($nom, "/");
......@@ -32,6 +34,8 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) {
while (list(, $format) = each($formats)) {
if (@file_exists(_DIR_IMG . "$chemin$nom.$format")){
return array((_DIR_IMG . $chemin), $nom, $format);
} else if (@file_exists(_DIR_IMG_PACK . "$chemin$nom.$format")){
return array((_DIR_IMG_PACK . $chemin), $nom, $format);
} else if (@file_exists(_DIR_IMG_ICONES_DIST . "$chemin$nom.$format")){
return array((_DIR_IMG_ICONES_DIST . $chemin), $nom, $format);
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter