Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 434 → Rev 435

/trunk/modules/fiche/formateurs/Description.php
52,17 → 52,8
$wp = array();
$this->textes->setProjet('wikipedia');
$this->textes->setId($this->getIdWp());
$texte = $this->textes->getTexte();
$wp['titre'] = $texte['titre'];
$wp['description'] = $texte['texte'];
$this->meta->setProjet('wikipedia');
// TODO: décommenter ceci et remplacer le titre en dur lorsque le service
// web wikipedia renverra les bonnes metadonnées
//$meta = $this->meta->getMetaDonnees();
//$titreMeta = $meta[0]['titre'];
$titreMeta = "Description issue de www.wikipedia.org";
$wp['meta']['titre'] = $titreMeta;
$wp['lien'] = $this->textes->getPageUrl();
$wp['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('wikipedia');
return $wp;