diff --git a/ecrire/inc/logos.php b/ecrire/inc/logos.php index 18b57dd771222b6c5f3b24dfa4810aa783a1598f..21778820b04027905c6d12a7b0ce68bac76c3534 100644 --- a/ecrire/inc/logos.php +++ b/ecrire/inc/logos.php @@ -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); }