Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1135 → Rev 1136

/trunk/modules/fiche/formateurs/Illustrations.php
57,12 → 57,16
}
 
public function getBloc() {
$this->donnees = $this->getPhoto('cel');
$this->donnees = $this->images->getInfosMeilleureImageParPrioriteTags($nnr = $this->nomCourant->getNnr(), array(
'fleur', 'feuille', 'fruit', 'ecorce', 'port', 'rameau'));
if (empty($this->donnees)) {
$infos_image = $this->getDessin();
if (empty($infos_image) == false ){
$this->donnees['imageUrl'] = array_shift($infos_image['images']);
}
} else {
// extraction de l'url
$this->donnees = array('imageUrl' => $this->donnees['binaire.href']);
}
if (empty($this->donnees)) {
$this->donnees = $this->getPhoto('photoflora');