Line 153... |
Line 153... |
153 |
if ($tableau['milieux'] != '') {
|
153 |
if ($tableau['milieux'] != '') {
|
154 |
$tableau['milieux'] = explode(';', $tableau['milieux']);
|
154 |
$tableau['milieux'] = explode(';', $tableau['milieux']);
|
155 |
} else {
|
155 |
} else {
|
156 |
$tableau['milieux'] = array();
|
156 |
$tableau['milieux'] = array();
|
157 |
}
|
157 |
}
|
- |
|
158 |
if (isset($tableau['motscles'])) {
|
- |
|
159 |
$tableau['tag-obs'] = $tableau['tag-img'] = $tableau['motscles'];
|
- |
|
160 |
}
|
158 |
$tableau['chpSupp'] = $tab;
|
161 |
$tableau['chpSupp'] = $tab;
|
159 |
$langue_projet_url = ( isset ( $this->parametres['langue'] ) && $this->parametres['langue'] !== 'fr' ) ? '_' . $this->parametres['langue'] : '';
|
162 |
$langue_projet_url = ( isset ( $this->parametres['langue'] ) && $this->parametres['langue'] !== 'fr' ) ? '_' . $this->parametres['langue'] : '';
|
160 |
$tableau['chemin_fichiers'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['dossierTmp'] . $tableau['projet'] . $langue_projet_url . '/' );
|
163 |
$tableau['chemin_fichiers'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['dossierTmp'] . $tableau['projet'] . $langue_projet_url . '/' );
|
161 |
return $tableau;
|
164 |
return $tableau;
|
162 |
}
|
165 |
}
|
Line 211... |
Line 214... |
211 |
|
214 |
|
212 |
|
215 |
|
213 |
|
216 |
|
214 |
// remplace certains parametres définis en bd par les parametres définis dans l'url
|
217 |
// remplace certains parametres définis en bd par les parametres définis dans l'url
|
215 |
private function traiterParametres($estProjetDefini, $tableau) {
|
218 |
private function traiterParametres($estProjetDefini, $tableau) {
|
216 |
$criteres = array('tag', 'motcle', 'projet', 'titre', 'logo');
|
219 |
$criteres = array('tag-obs', 'tag-img', 'projet', 'titre', 'logo');
|
217 |
$criteresProjetNonDefini = array('commune', 'num_nom', 'referentiel');
|
220 |
$criteresProjetNonDefini = array('commune', 'num_nom', 'referentiel');
|
218 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|
221 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|