Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3016 → Rev 3017

/trunk/widget/modules/saisie/Saisie.php
179,7 → 179,7
}
 
$projetsAListeDeNoms = $this->transformerEnTableau($this->config['projets']['liste_noms']);
if (in_array($this->projet, $projetsAListeDeNoms)) {
if (in_array($this->projet, $projetsAListeDeNoms) && !$this->especeEstImposee()) {
$projetsAListeDeNomsSciEtVerna = $this->transformerEnTableau($this->config['projets']['liste_noms_sci_et_verna']);
if (in_array($this->projet, $projetsAListeDeNomsSciEtVerna)) {
$widget['donnees']['taxons'] = $this->recupererListeNoms();
349,7 → 349,11
*/
protected function recupererListeTaxon() {
$taxons = array();
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_taxons.tsv';
if ($this->projet == 'missions-flore') {
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_'.$this->mission.'_taxons.tsv';
} else {
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_taxons.tsv';
}
if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
$taxons = $this->decomposerFichierTsv($fichier_tsv);
} else {