From 40cab3b72dbe88873d2ccf301a7fe52e0c36debf Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 20 Sep 2011 00:19:15 +0200 Subject: [PATCH] Displays name of the person paying in unlogged payments. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/payment.php | 1 + templates/payment/payment.tpl | 6 ++++++ 2 files changed, 7 insertions(+) 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} -- 2.1.4