Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 2006 → Rev 2007

/branches/v1.7-oxygene/services/modules/0.1/syndication/Commentaires.php
74,13 → 74,15
$intitule = ($element['nom_sel'] != '') ? "Proposition $nomPropose" : 'Commentaire';
$auteur = htmlspecialchars($this->creerAuteur($element));
$nomSelActuel = htmlspecialchars($element['dob_nom_sel']);
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?'));
$dateObs = '?';
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : null));
$dateObs = null;
if (strpos($element['dob_date_observation'], '0000') === false) {
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
}
 
$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
$titre = "$intitule par $auteur pour $nomSelActuel";
$titre .= ($zoneGeo != null) ? " à $zoneGeo" : "";
$titre .= ($dateObs != null) ? " le $dateObs" : "";
return $titre;
}