diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index 4c45732016ce2ed4474d453ad081e7abed97d9de..972be3fc690fdf60d7e94c144b8ea63bcee94f51 100644 --- a/ecrire/inc/distant.php +++ b/ecrire/inc/distant.php @@ -204,6 +204,8 @@ function fichier_copie_locale($source) { // Si c'est une image de IMG/ pas de souci if (preg_match(',^'._DIR_IMG.',', $source)) return $source; + else if (preg_match(',^'._DIR_IMG_PACK.',', $source)) + return $source; // Si l'extension n'est pas precisee, aller la chercher dans la table // des documents -- si la source n'est pas dans la table des documents, diff --git a/ecrire/inc/logos.php b/ecrire/inc/logos.php index 755fc5381da4c25091fc050aa7d07cbd27b35f50..898e52b93df4078a6b953bde5ac17612c64fba3a 100644 --- a/ecrire/inc/logos.php +++ b/ecrire/inc/logos.php @@ -16,6 +16,8 @@ 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)) { + $nom = substr($nom,strlen(_DIR_IMG_ICONES_DIST)); } $pos = strrpos($nom, "/"); if ($pos > 0) { @@ -29,6 +31,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_ICONES_DIST . "$chemin$nom.$format")){ + return array((_DIR_IMG_ICONES_DIST . $chemin), $nom, $format); } } }