Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 364 → Rev 363

/trunk/services/modules/0.1/photoflora/Images.php
172,13 → 172,10
return $resultat;
}
private function callBackReplace($m) {
return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES");
}
private function formaterChaineEncodeeBddPhotoflora($chaine) {
return $chaine = preg_replace_callback("/(&#[0-9]+;)/", array($this, 'callBackReplace')
, $chaine);
return $chaine = preg_replace_callback("/(&#[0-9]+;)/", function($m) {
return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES");
}, $chaine);
}
// TODO: garder ancien web service pour retour xml ou bien fusionner les deux ?