Changeset 109613 in spip-zone
- Timestamp:
- Mar 19, 2018, 7:24:57 PM (3 years ago)
- Location:
- _plugins_/rang/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/rang/trunk/paquet.xml
r109533 r109613 2 2 prefix="rang" 3 3 categorie="navigation" 4 version="0.7.1 3"4 version="0.7.14" 5 5 etat="experimental" 6 6 compatibilite="[3.1.0;3.2.*]" … … 28 28 <pipeline nom="recuperer_fond" inclure="rang_pipelines.php" /> 29 29 <pipeline nom="pre_edition" inclure="rang_pipelines.php" /> 30 31 30 32 31 </paquet> -
_plugins_/rang/trunk/rang_pipelines.php
r109533 r109613 24 24 */ 25 25 function rang_declarer_tables_objets_sql($tables) { 26 27 $tables_objets_selectionnes = lire_config('rang/rang_objets'); 28 if (isset($tables_objets_selectionnes) AND !empty($tables_objets_selectionnes)) { 26 29 27 /* Declaration du champ Rang sur les objets sélectionnés */28 $rang_objets = rtrim(lire_config('rang/rang_objets'), ',');29 $liste_objets = explode(',', $rang_objets);30 /* Declaration du champ Rang sur les objets sélectionnés */ 31 $rang_objets = rtrim(lire_config('rang/rang_objets'), ','); 32 $liste_objets = explode(',', $rang_objets); 30 33 31 foreach ($liste_objets as $table) { 32 $tables[$table]['field']['rang'] = "SMALLINT NOT NULL"; 34 foreach ($liste_objets as $table) { 35 $tables[$table]['field']['rang'] = "SMALLINT NOT NULL"; 36 } 33 37 } 34 35 38 return $tables; 36 39 } … … 46 49 47 50 $tables_objets_selectionnes = lire_config('rang/rang_objets'); 48 49 50 51 if (isset($tables_objets_selectionnes) AND !empty($tables_objets_selectionnes)) { 51 52
Note: See TracChangeset
for help on using the changeset viewer.