From: Stéphane Jacob Date: Mon, 19 Sep 2011 22:19:15 +0000 (+0200) Subject: Displays name of the person paying in unlogged payments. X-Git-Tag: xorg/1.1.4~157 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=40cab3b72dbe88873d2ccf301a7fe52e0c36debf;p=platal.git Displays name of the person paying in unlogged payments. Signed-off-by: Stéphane Jacob --- diff --git a/modules/payment.php b/modules/payment.php index 1613259..66c56b2 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -162,6 +162,7 @@ class PaymentModule extends PLModule } else { $pay->init($val, $meth); $pay->prepareform($user); + $page->assign('full_name', $user->fullName(true)); $page->assign('sex', $user->isFemale()); } } elseif (S::logged()) { diff --git a/templates/payment/payment.tpl b/templates/payment/payment.tpl index 07c849b..d926a91 100644 --- a/templates/payment/payment.tpl +++ b/templates/payment/payment.tpl @@ -28,6 +28,12 @@ Paiement via {$meth->text} +{if t($public)} + + Nom + {$full_name} + +{/if} Transaction {$pay->text}