From: Anne Limoges Date: Wed, 1 Aug 2012 09:11:48 +0000 (+0200) Subject: Remove occurences of flag 'unique' for payments. X-Git-Tag: xorg/1.1.6~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1c02b178e88ecb8734929003ee28677f63af31f5;p=platal.git Remove occurences of flag 'unique' for payments. --- diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index 344712f..46bf7f0 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -66,7 +66,7 @@ class BPLCCyberPlus $log = S::v('log'); // Transaction's reference computation. - $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id(); + $prefix = rand_url_id(); $fullref = substr("$prefix-{$pay->id}",-12); // FIXME : check for duplicates $ts = time(); $trans_date = gmdate("YmdHis", $ts); diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index a6d9ab4..f5232d1 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -91,7 +91,7 @@ class PayPal } // We build the transaction's reference - $prefix = ($pay->flags->hasflag('unique')) ? str_pad("", 15, "0") : rand_url_id(); + $prefix = rand_url_id(); $fullref = substr("$prefix-xorg-{$pay->id}", -15); $this->infos['commande'] = array(