Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -113,24 +113,24 @@ |
114 | 114 | $this->fnPayflowDisplayForm( $data, $error ); |
115 | 115 | } else { // The submitted form data is valid, so process it |
116 | 116 | // allow any external validators to have their way with the data |
117 | | - wfRunHooks( 'PayflowGatewayValidate', array( $this, $data )); |
| 117 | + wfRunHooks( 'PayflowGatewayValidate', array( &$this, &$data )); |
118 | 118 | |
119 | 119 | // if the transaction was flagged for review |
120 | 120 | if ( $this->action == 'review' ) { |
121 | 121 | // expose a hook for external handling of trxns flagged for review |
122 | | - wfRunHooks( 'PayflowGatewayReview', array( $this, $data )); |
| 122 | + wfRunHooks( 'PayflowGatewayReview', array( &$this, &$data )); |
123 | 123 | } |
124 | 124 | |
125 | 125 | // if the transaction was flagged to be 'challenged' |
126 | 126 | if ( $this->action == 'challenge' ) { |
127 | 127 | // expose a hook for external handling of trxns flagged for challenge (eg captcha) |
128 | | - wfRunHooks( 'PayflowGatewayChallenge', array( $this, $data )); |
| 128 | + wfRunHooks( 'PayflowGatewayChallenge', array( &$this, &$data )); |
129 | 129 | } |
130 | 130 | |
131 | 131 | // if the transaction was flagged for rejection |
132 | 132 | if ( $this->action == 'reject' ) { |
133 | 133 | // expose a hook for external handling of trxns flagged for rejection |
134 | | - wfRunHooks( 'PayflowGatewayReject', array( $this, $data )); |
| 134 | + wfRunHooks( 'PayflowGatewayReject', array( &$this, &$data )); |
135 | 135 | |
136 | 136 | $this->fnPayflowDisplayDeclinedResults( '' ); |
137 | 137 | $this->fnPayflowUnsetEditToken(); |
— | — | @@ -139,13 +139,13 @@ |
140 | 140 | // if the transaction was flagged for processing |
141 | 141 | if ( $this->action == 'process' ) { |
142 | 142 | // expose a hook for external handling of trxns ready for processing |
143 | | - wfRunHooks( 'PayflowGatewayProcess', array( $this, $data )); |
| 143 | + wfRunHooks( 'PayflowGatewayProcess', array( &$this, &$data )); |
144 | 144 | $this->fnPayflowProcessTransaction( $data, $payflow_data ); |
145 | 145 | $this->fnPayflowUnsetEditToken(); |
146 | 146 | } |
147 | 147 | |
148 | 148 | // expose a hook for any post processing |
149 | | - wfRunHooks( 'PayflowGatewayPostProcess', array( $this, $data )); |
| 149 | + wfRunHooks( 'PayflowGatewayPostProcess', array( &$this, &$data )); |
150 | 150 | } |
151 | 151 | } else { |
152 | 152 | //Display form for the first time |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | */ |
73 | 73 | public function validate() { |
74 | 74 | // expose a hook for custom filters |
75 | | - wfRunHooks( 'PayflowGatewayCustomFilter', array( $this )); |
| 75 | + wfRunHooks( 'PayflowGatewayCustomFilter', array( &$this )); |
76 | 76 | $this->gateway_object->action = $this->determineAction(); |
77 | 77 | |
78 | 78 | $log_msg = '"' . $this->gateway_object->action . "\"\t\"" . $this->risk_score . "\""; |