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

corrige #232 a minima en attendant le rangement pour la 2.0

parent a3c4f569
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -204,6 +204,8 @@ function fichier_copie_locale($source) { ...@@ -204,6 +204,8 @@ function fichier_copie_locale($source) {
// Si c'est une image de IMG/ pas de souci // Si c'est une image de IMG/ pas de souci
if (preg_match(',^'._DIR_IMG.',', $source)) if (preg_match(',^'._DIR_IMG.',', $source))
return $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 // 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, // des documents -- si la source n'est pas dans la table des documents,
......
...@@ -16,6 +16,8 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) { ...@@ -16,6 +16,8 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) {
if (ereg("^" . _DIR_IMG, $nom)) { if (ereg("^" . _DIR_IMG, $nom)) {
$nom = substr($nom,strlen(_DIR_IMG)); $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, "/"); $pos = strrpos($nom, "/");
if ($pos > 0) { if ($pos > 0) {
...@@ -29,6 +31,8 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) { ...@@ -29,6 +31,8 @@ function cherche_image_nommee($nom, $formats = array ('gif', 'jpg', 'png')) {
while (list(, $format) = each($formats)) { while (list(, $format) = each($formats)) {
if (@file_exists(_DIR_IMG . "$chemin$nom.$format")){ if (@file_exists(_DIR_IMG . "$chemin$nom.$format")){
return array((_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);
} }
} }
} }
......
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