From: Stéphane Jacob Date: Mon, 3 Jan 2011 12:23:15 +0000 (+0100) Subject: Fixes HTML validation and user's sex retrieval in payment. X-Git-Tag: xorg/1.0.2~41 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d6c91d502586d5f56faae7a39dc18e3ed26395f6;p=platal.git Fixes HTML validation and user's sex retrieval in payment. Signed-off-by: Stéphane Jacob --- diff --git a/modules/payment.php b/modules/payment.php index 079e524..543eba1 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -180,6 +180,7 @@ class PaymentModule extends PLModule $page->assign('meth', $meth); $page->assign('pay', $pay); $page->assign('evtlink', $pay->event()); + $page->assign('sex', S::user()->isFemale()); } function handler_cyber_return(&$page, $uid = null) diff --git a/templates/payment/index.tpl b/templates/payment/index.tpl index 7884b6a..2007a77 100644 --- a/templates/payment/index.tpl +++ b/templates/payment/index.tpl @@ -39,7 +39,7 @@ {if $comment} - Commentaire + Commentaire {$comment} {/if} @@ -72,7 +72,7 @@

-En cliquant sur "Valider", tu seras redirigé{if $smarty.session.sexe}e{/if} vers le site de {$pay->api->nomsite}, où il te +En cliquant sur "Valider", tu seras redirigé{if $sex}e{/if} vers le site de {$pay->api->nomsite}, où il te sera demandé de saisir ton numéro de carte bancaire. Lorsque le paiement aura été effectué, tu recevras une confirmation par email.