Changeset 48545 in spip-zone


Ignore:
Timestamp:
Jun 7, 2011, 2:24:48 PM (10 years ago)
Author:
guillaume@…
Message:

Petite coquille : ne pas utiliser $GLOBALtables_principales? mais la fonction description_table, Merci Jeannot

Location:
_plugins_/Association/Associaspip/exec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/Association/Associaspip/exec/adherents.php

    r48531 r48545  
    289289function adherents_table($liste_id_auteurs)
    290290{
    291         $champs = $GLOBALS['tables_principales']['spip_asso_membres']['field'];
     291        $champs = description_table('spip_asso_membres');
    292292        $res = '';
    293         foreach ($champs as $k => $v) {
     293        foreach ($champs['field'] as $k => $v) {
    294294                if (!(($GLOBALS['association_metas']['civilite']!="on" && $k == 'sexe') OR ($GLOBALS['association_metas']['prenom']!="on" && $k == 'prenom') OR ($GLOBALS['association_metas']['id_asso']!="on" && $k == 'id_asso'))) {
    295295                        $libelle = 'adherent_libelle_' . $k;
  • _plugins_/Association/Associaspip/exec/pdf_adherents.php

    r48531 r48545  
    2929
    3030        //On définit les colonnes (champs,largeur,intitulé,alignement)
    31                 $champs = $GLOBALS['tables_principales']['spip_asso_membres']['field'];
     31                $champs = description_table('spip_asso_membres');
    3232
    3333        $sent = _request('champs');
    34         foreach ($champs as $k => $v) {
     34                foreach ($champs['field'] as $k => $v) {
    3535          if ($sent[$k]=='on') {
    3636            $type = strpos($v, 'text');
Note: See TracChangeset for help on using the changeset viewer.