Changeset 111417 in spip-zone
- Timestamp:
- Aug 24, 2018, 1:33:07 PM (2 years ago)
- Location:
- _plugins_/encarts/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/encarts/trunk/encarts_pipelines.php
r105429 r111417 36 36 $texte = ""; 37 37 $e = trouver_objet_exec($flux['args']['exec']); 38 $tables_objets = lire_config('encarts/objets'); 39 /** 40 * On traite ici le cas où il n'y a qu'un seul objet sélectionné. 41 * lire_config retournera un string s'il ne rencontre pas un format non sérialisé. 42 * Or, nous avons besoin d'un tableau. 43 */ 44 if (is_string($tables_objets)) { 45 $tables_objets = explode(',', $tables_objets); 46 } 38 47 39 48 // encarts sur les objets configurés 40 49 if (!$e['edition'] 41 and $tables_objets = lire_config('encarts/objets')42 50 and is_array($tables_objets) 43 51 and in_array(table_objet_sql($e['type']), $tables_objets) -
_plugins_/encarts/trunk/paquet.xml
r105429 r111417 2 2 prefix="encarts" 3 3 categorie="edition" 4 version="2.3. 0"4 version="2.3.1" 5 5 etat="test" 6 6 compatibilite="[3.0.0;3.2.*]"
Note: See TracChangeset
for help on using the changeset viewer.