Index: branches/fundraising/OWA/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -390,7 +390,7 @@ |
391 | 391 | |
392 | 392 | // update contribution tracking |
393 | 393 | // only forced when OWA is defined |
394 | | - $this->updateContributionTracking( $data, defined(OWA) ); |
| 394 | + $this->updateContributionTracking( $data, defined( 'OWA' ) ); |
395 | 395 | |
396 | 396 | // create payflow query string, include string lengths |
397 | 397 | $queryArray = array( |
— | — | @@ -969,7 +969,7 @@ |
970 | 970 | if( $owa_ref != null && !is_numeric( $owa_ref )){ |
971 | 971 | $owa_ref = $this->get_owa_ref_id( $owa_ref ); |
972 | 972 | } |
973 | | - |
| 973 | + echo $ow |
974 | 974 | // if we're in testing mode and an action hasn't yet be specified, prepopulate the form |
975 | 975 | if ( !$wgRequest->getText( 'action', false ) && !$numAttempt && $wgPayflowGatewayTest ) { |
976 | 976 | // define arrays of cc's and cc #s for random selection |
— | — | @@ -1156,8 +1156,10 @@ |
1157 | 1157 | public function updateContributionTracking( &$data, $force=false ) { |
1158 | 1158 | // ony update contrib tracking if we're coming from a single-step landing page |
1159 | 1159 | // which we know with cc# in utm_source or if force=true |
1160 | | - if ( !$force || !preg_match( "/cc[0-9]/", $data[ 'utm_source' ] )) { |
1161 | | - return; |
| 1160 | + if ( $force === false ) { |
| 1161 | + if ( !preg_match( "/cc[0-9]/", $data[ 'utm_source' ] )) { |
| 1162 | + return; |
| 1163 | + } |
1162 | 1164 | } |
1163 | 1165 | |
1164 | 1166 | |