From 130ae4f823bdd11f818f725648c31608a484101c Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 5 May 2007 12:56:16 +0000 Subject: [PATCH] Import [1801] and add naissance_ini in the fields to define to add new users git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.14@1802 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/admin.php | 2 +- templates/register/inscription.reussie.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/admin.php b/modules/admin.php index 7b3483a..81dffeb 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -617,7 +617,7 @@ class AdminModule extends PLModule switch ($action) { case 'add': $fields = array('nom', 'nom_ini', 'prenom', - 'prenom_ini', 'promo', 'promo_sortie', 'flags', + 'prenom_ini', 'naissance_ini', 'promo', 'promo_sortie', 'flags', 'matricule', 'matricule_ax', 'perms'); $importer->forceValue('promo', $promo); $importer->forceValue('promo_sortie', $promo + 3); diff --git a/templates/register/inscription.reussie.tpl b/templates/register/inscription.reussie.tpl index 0590d19..89f4dd9 100644 --- a/templates/register/inscription.reussie.tpl +++ b/templates/register/inscription.reussie.tpl @@ -25,7 +25,7 @@ {from full=#from#} {to addr="$forlife@polytechnique.org"} {subject text="Bienvenue parmi les X sur le web !"} -{elseif $mail_par eq 'text'} +{elseif $mail_part eq 'text'} {$prenom}, félicitations pour ton inscription ! -- 2.1.4