40,8 → 40,8 |
$infos = array(); |
$this->images->setProjet('cel'); |
$img = $this->images->getInfosImageParIdImage($this->id_image); |
Debug::printr($img); |
$infos['id'] = $this->id_image; |
$img['date'] = $this->formaterDateImg($img['date']); |
$infos['image'] = $img; |
$infos['urlContact'] = $this->appUrls->obtenirUrlPopUpContact($img['auteur.id'], $this->id_image); |
|
48,15 → 48,5 |
$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos)); |
} |
|
private function formaterDateImg($date) { |
$dateFmt = $date; |
if ($date == '0000-00-00' || $date == '1970-01-01 01:01:01') { |
$dateFmt = 'inconnue'; |
} else { |
$dateFmt = strftime('%e %B %Y', strtotime($date)); |
} |
return $dateFmt; |
} |
|
} |
?> |