|
@@ 75-78 (lines=4) @@
|
| 72 |
|
include_spip('inc/modifier'); |
| 73 |
|
|
| 74 |
|
$champ_date = ''; |
| 75 |
|
if (isset($desc['date']) AND $desc['date']) |
| 76 |
|
$champ_date = $desc['date']; |
| 77 |
|
elseif (isset($desc['field']['date'])) |
| 78 |
|
$champ_date = 'date'; |
| 79 |
|
|
| 80 |
|
$white = array_keys($desc['field']); |
| 81 |
|
// on ne traite pas la cle primaire par defaut, notamment car |
|
@@ 271-274 (lines=4) @@
|
| 268 |
|
$sel[] = (isset($desc['field']['statut'])?"statut":"'' as statut"); |
| 269 |
|
|
| 270 |
|
$champ_date = ''; |
| 271 |
|
if (isset($desc['date']) AND $desc['date']) |
| 272 |
|
$champ_date = $desc['date']; |
| 273 |
|
elseif (isset($desc['field']['date'])) |
| 274 |
|
$champ_date = 'date'; |
| 275 |
|
|
| 276 |
|
$sel[] = ($champ_date ? "$champ_date as date" : "'' as date"); |
| 277 |
|
$sel[] = (isset($desc['field']['id_rubrique'])?'id_rubrique':"0 as id_rubrique"); |