Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -799,6 +799,8 @@ |
800 | 800 | $this->transaction_results = array(); |
801 | 801 | $this->setValidationAction('process', true); |
802 | 802 | |
| 803 | + $this->log( 'ReferrerHeaderTest (' . $this->getData_Raw( 'contribution_tracking_id' ) . "): Value @ do_transaction = " . $this->getData_Raw( 'referrer' ) ); |
| 804 | + |
803 | 805 | try { |
804 | 806 | $this->setCurrentTransaction( $transaction ); |
805 | 807 | |
— | — | @@ -1277,7 +1279,7 @@ |
1278 | 1280 | $start[$string] = $now; |
1279 | 1281 | } |
1280 | 1282 | $clock = round( $now - $start[$string], 4 ); |
1281 | | - self::log( "\nClock at $string: $clock ($now)" ); |
| 1283 | + self::log( "Clock at $string: $clock ($now)" ); |
1282 | 1284 | return $clock; |
1283 | 1285 | } |
1284 | 1286 | |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/gateway_common/gateway.adapter.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
1285 | 1287 | Merged /trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php:r105334 |
Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/gateway_common/DonationData.php |
— | — | @@ -107,6 +107,19 @@ |
108 | 108 | } |
109 | 109 | } |
110 | 110 | |
| 111 | + $posted_referrer = $wgRequest->getVal( 'referrer' ); |
| 112 | + $tries = array( |
| 113 | + 'referer', |
| 114 | + 'referrer', |
| 115 | + 'Referer', |
| 116 | + 'Referrer' |
| 117 | + ); |
| 118 | + foreach ($tries as $trythis){ |
| 119 | + $header[$trythis] = $wgRequest->getHeader( $trythis ); |
| 120 | + } |
| 121 | + |
| 122 | + $this->log( 'ReferrerHeaderTest (' . $this->getVal( 'contribution_tracking_id' ) . "): Posted = $posted_referrer, Header Tries = " . print_r($header, true) . ', Final = ' . $this->getVal('referrer') ); |
| 123 | + |
111 | 124 | //if we have saved any donation data to the session, pull them in as well. |
112 | 125 | $this->integrateDataFromSession(); |
113 | 126 | |
— | — | @@ -140,6 +153,7 @@ |
141 | 154 | } |
142 | 155 | } |
143 | 156 | } |
| 157 | + $this->log( 'ReferrerHeaderTest (' . $this->getVal( 'contribution_tracking_id' ) . "): Final After Session Integration = " . $this->getVal('referrer') ); |
144 | 158 | } |
145 | 159 | |
146 | 160 | function getData() { |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/gateway_common/DonationData.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
147 | 161 | Merged /trunk/extensions/DonationInterface/gateway_common/DonationData.php:r105334 |