/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2012 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
$champs['langue_choisie'] = 'non';
}
- if (isset($desc['field']['statut']))
- $champs['statut'] = 'prepa';
+ if (isset($desc['field']['statut'])){
+ if (isset($desc['statut_textes_instituer'])){
+ $cles_statut = array_keys($desc['statut_textes_instituer']);
+ $champs['statut'] = reset($cles_statut);
+ }
+ else
+ $champs['statut'] = 'prepa';
+ }
+
if ((isset($desc['date']) AND $d=$desc['date']) OR isset($desc['field'][$d='date']))
$champs[$d] = date('Y-m-d H:i:s');