Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 312 → Rev 311

/trunk/services/bibliotheque/ReponseHttp.php
53,12 → 53,7
private function transformerReponseCorpsSuivantMime() {
switch ($this->resultatService->mime) {
case 'application/json' :
if (isset($_GET['callback'])) {
$contenu = $_GET['callback'].'('.json_encode($donnees).');';
} else {
$contenu = json_encode($this->resultatService->corps);
}
$this->resultatService->corps = $contenu;
$this->resultatService->corps = json_encode($this->resultatService->corps);
break;
}
}