Changeset 109646 in spip-zone
- Timestamp:
- Mar 23, 2018, 1:35:37 PM (3 years ago)
- Location:
- _plugins_/fabrique/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/fabrique/trunk/fabrique_fonctions.php
r101008 r109646 432 432 * @param array $objet 433 433 * Descrption de l'objet 434 * @param array$champ434 * @param string $champ 435 435 * Nom de l'option à tester 436 436 * @return string … … 1296 1296 * @param array $objet 1297 1297 * Déclaration d'un objet dans la Fabrique 1298 * @param array $objet 1298 * @param array $objets 1299 1299 * Déclaration de tous les objets dans la Fabrique 1300 1300 * @return array … … 1364 1364 // déclaré dans la Fabrique 1365 1365 foreach ($objets as $objet) { 1366 if ( $objet['table'] == $table) {1366 if (isset($objet['table']) and $objet['table'] == $table) { 1367 1367 return $objet['id_objet']; 1368 1368 } … … 1390 1390 // déclaré dans la Fabrique 1391 1391 foreach ($objets as $objet) { 1392 if ( $objet['table'] == $table) {1392 if (isset($objet['table']) and $objet['table'] == $table) { 1393 1393 return $objet['objet']; 1394 1394 } … … 1416 1416 // déclaré dans la Fabrique 1417 1417 foreach ($objets as $objet) { 1418 if ( $objet['table'] == $table) {1418 if (isset($objet['table']) and $objet['table'] == $table) { 1419 1419 return $objet['type']; 1420 1420 } -
_plugins_/fabrique/trunk/formulaires/inc-fabriquer_plugin_objet.html
r100044 r109646 134 134 <BOUCLE_list_champs(DATA){source tableau, #CHAMPS}> 135 135 <option label="#CHAMP" value="#CHAMP"/> 136 [(#CHAMP|in_array{#LISTE{nom,titre}}|oui) #SET{defaut_titre,#CHAMP} )]137 [(#CHAMP|in_array{#LISTE{lang}}|oui) #SET{defaut_lang,#CHAMP} )]138 [(#CHAMP|in_array{#LISTE{date_publication,date_creation,date}}|oui) #SET{defaut_date,#CHAMP} )]136 [(#CHAMP|in_array{#LISTE{nom,titre}}|oui) #SET{defaut_titre,#CHAMP} ] 137 [(#CHAMP|in_array{#LISTE{lang}}|oui) #SET{defaut_lang,#CHAMP} ] 138 [(#CHAMP|in_array{#LISTE{date_publication,date_creation,date}}|oui) #SET{defaut_date,#CHAMP} ] 139 139 </BOUCLE_list_champs> 140 140 </datalist> -
_plugins_/fabrique/trunk/formulaires/restaurer_plugin.php
r92608 r109646 58 58 } 59 59 unset($sauvegardes); 60 $liste_fichiers = []; 61 if (count($sauvegardes_plugins)) { 62 $liste_fichiers['Sauvegarde intégrée au plugin (la plus récente donc)'] = $sauvegardes_plugins; 63 } 64 if (count($sauvegardes_backup)) { 65 $liste_fichiers['Sauvegarde intégrée au plugin (la plus récente donc)'] = $sauvegardes_backup; 66 } 60 67 61 68 $contexte = array( 62 69 'sauvegarde' => '', 63 'liste_fichiers' => array( 64 'Sauvegarde intégrée au plugin (la plus récente donc)' => $sauvegardes_plugins, 65 'Sauvegardes issues de créations antérieures' => $sauvegardes_backup, 66 ), 70 'liste_fichiers' => $liste_fichiers, 67 71 ); 68 72 return $contexte;
Note: See TracChangeset
for help on using the changeset viewer.