X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney%2Fcyberpaiement.inc.php;h=a3945638cf2ef4e592481010e58ec3e748af3c07;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=c79935c3c5f5161a3f9d408e3ea463a59ad27f59;hpb=2925df1bd6cb08c1f29822019fcb82e59f63f8a3;p=platal.git diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php index c79935c..a394563 100644 --- a/modules/payment/money/cyberpaiement.inc.php +++ b/modules/payment/money/cyberpaiement.inc.php @@ -1,6 +1,6 @@ baseurl) . '/' . $platal->ns . "payment/cyber_return/".S::v('uid')."?comment=".urlencode(Env::v('comment'))."&CHAMPBPX"; - $req = XDB::query("SELECT IF(nom_usage!='', nom_usage, nom) AS nom - FROM auth_user_md5 - WHERE user_id = {?}",S::v('uid')); - $name = $req->fetchOneCell(); + $user = S::user(); + $name = $user->lastName(); // on constuit la reference de la transaction $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id(); @@ -74,7 +72,7 @@ class CyberPayment 'CHAMP101' => replace_accent(S::v('prenom')), 'CHAMP102' => '.', 'CHAMP103' => '.', - 'CHAMP104' => S::v('bestalias').'@' . $globals->mail->domain, + 'CHAMP104' => S::user()->bestEmail(), 'CHAMP106' => '.', 'CHAMP107' => '.', 'CHAMP108' => '.',