Merge branch 'xorg/maint' into xorg/master
authorStéphane Jacob <sj@m4x.org>
Tue, 11 Oct 2011 09:08:46 +0000 (11:08 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 11 Oct 2011 09:08:46 +0000 (11:08 +0200)
1  2 
modules/payment/money/paypal.inc.php

@@@ -33,7 -33,7 +33,7 @@@ class PayPa
          $this->val_number = $val;
      }
  
 -    function prepareform($pay)
 +    function prepareform($pay, $user)
      {
          // Documentation:
          // https://www.paypal.com/developer
          global $globals, $platal;
  
          $this->urlform = 'https://' . $globals->money->paypal_site . '/cgi-bin/webscr';
 -        $user = S::user();
  
          $roboturl = str_replace("https://","http://",$globals->baseurl)
                    . '/' . $platal->ns . "payment/paypal_return/" . S::v('uid')
-                   . "?comment=" . urlencode(Env::v('comment')) . '?display=' . Post::i('display');
+                   . "?comment=" . urlencode(Env::v('comment')) . '&display=' . Post::i('display');
  
          $this->infos = array(
              'commercant' => array(