Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 434 → Rev 435

/trunk/metier/api_0.1/Textes.php
34,7 → 34,7
return $this->chargerDonnees($url);
}
 
private function getUrlTexte() {
public function getUrlTexte() {
if ($this->sectionTitre != '') {
$tpl = Config::get('texteTitreSectionTpl');
$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
45,5 → 45,16
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getPageUrl() {
$url = '';
if(Config::get($this->getProjet().'LienPageTpl')) {
$tpl = Config::get($this->getProjet().'LienPageTpl');
$params = array('id' => $this->id, 'langue' => 'fr');
$url = $this->formaterUrl($tpl, $params);
}
return $url;
}
}
?>