Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195051

Change subject: split -> explode
......................................................................

split -> explode

Deprecated in PHP

Change-Id: I0d4bd9f8fe1a19c4b7bbd394809e810860f2d642
---
M sites/all/modules/queue2civicrm/recurring/recurring.module
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/51/195051/1

diff --git a/sites/all/modules/queue2civicrm/recurring/recurring.module 
b/sites/all/modules/queue2civicrm/recurring/recurring.module
index 6d6d302..abc63bb 100644
--- a/sites/all/modules/queue2civicrm/recurring/recurring.module
+++ b/sites/all/modules/queue2civicrm/recurring/recurring.module
@@ -520,7 +520,7 @@
          $msg_normalized[ 'last_name' ] = $msg[ 'last_name' ];
 
       if ( isset( $msg['address_street'] ) ) {
-          $split = split("\n", str_replace("\r", '', $msg[ 'address_street' 
]));
+          $split = explode("\n", str_replace("\r", '', $msg[ 'address_street' 
]));
           $msg_normalized[ 'street_address' ] = $split[0];
           if ( count( $split ) > 1 ) {
             $msg_normalized[ 'supplemental_address_1' ] = $split[1];
@@ -531,10 +531,10 @@
           $msg_normalized[ 'postal_code' ] = $msg[ 'address_zip' ];
 
           // Shipping info (address same as above since PayPal only passes 1 
address)
-          $split = split(" ", $msg[ 'address_name' ]);
+          $split = explode(" ", $msg[ 'address_name' ]);
           $msg_normalized[ 'last_name_2' ] = array_pop($split);
           $msg_normalized[ 'first_name_2' ] = implode(" ", $split);
-          $split = split("\n", str_replace("\r", '', $msg[ 'address_street' 
]));
+          $split = explode("\n", str_replace("\r", '', $msg[ 'address_street' 
]));
           $msg_normalized[ 'street_address_2' ] = $split[0];
           if ( count( $split ) > 1 ) {
             $msg_normalized[ 'supplemental_address_2' ] = $split[1];

-- 
To view, visit https://gerrit.wikimedia.org/r/195051
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d4bd9f8fe1a19c4b7bbd394809e810860f2d642
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to