http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73043

Revision: 73043
Author:   awjrichards
Date:     2010-09-15 01:50:04 +0000 (Wed, 15 Sep 2010)

Log Message:
-----------
Updated params passed to wfRunHooks to explicitly declare references where 
necessary for compatibility with PHP 5.3

Modified Paths:
--------------
    
trunk/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php
    
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php
===================================================================
--- 
trunk/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php
 2010-09-15 01:48:55 UTC (rev 73042)
+++ 
trunk/extensions/DonationInterface/payflowpro_gateway/extras/custom_filters/custom_filters.body.php
 2010-09-15 01:50:04 UTC (rev 73043)
@@ -71,7 +71,7 @@
         */
        public function validate() {
                // expose a hook for custom filters
-               wfRunHooks( 'PayflowGatewayCustomFilter', array( $this ));
+               wfRunHooks( 'PayflowGatewayCustomFilter', array( &$this ));
                $this->gateway_object->action = $this->determineAction();
 
                $log_msg = '"' . $this->gateway_object->action . "\"\t\"" . 
$this->risk_score . "\""; 

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
===================================================================
--- 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-09-15 01:48:55 UTC (rev 73042)
+++ 
trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
   2010-09-15 01:50:04 UTC (rev 73043)
@@ -113,24 +113,24 @@
                                        $this->fnPayflowDisplayForm( $data, 
$error );
                                } else { // The submitted form data is valid, 
so process it
                                        // allow any external validators to 
have their way with the data        
-                                       wfRunHooks( 'PayflowGatewayValidate', 
array( $this, $data ));
+                                       wfRunHooks( 'PayflowGatewayValidate', 
array( &$this, &$data ));
 
                                        // if the transaction was flagged for 
review
                                        if ( $this->action == 'review' ) {
                                                // expose a hook for external 
handling of trxns flagged for review
-                                               wfRunHooks( 
'PayflowGatewayReview', array( $this, $data ));
+                                               wfRunHooks( 
'PayflowGatewayReview', array( &$this, &$data ));
                                        }
 
                                        // if the transaction was flagged to be 
'challenged'
                                        if ( $this->action == 'challenge' ) {
                                                // expose a hook for external 
handling of trxns flagged for challenge (eg captcha)
-                                               wfRunHooks( 
'PayflowGatewayChallenge', array( $this, $data ));
+                                               wfRunHooks( 
'PayflowGatewayChallenge', array( &$this, &$data ));
                                        }
 
                                        // if the transaction was flagged for 
rejection
                                        if ( $this->action == 'reject' ) {
                                                // expose a hook for external 
handling of trxns flagged for rejection
-                                               wfRunHooks( 
'PayflowGatewayReject', array( $this, $data ));
+                                               wfRunHooks( 
'PayflowGatewayReject', array( &$this, &$data ));
 
                                                
$this->fnPayflowDisplayDeclinedResults( '' );
                                                
$this->fnPayflowUnsetEditToken();
@@ -139,13 +139,13 @@
                                        // if the transaction was flagged for 
processing
                                        if ( $this->action == 'process' ) {
                                                // expose a hook for external 
handling of trxns ready for processing
-                                               wfRunHooks( 
'PayflowGatewayProcess', array( $this, $data ));
+                                               wfRunHooks( 
'PayflowGatewayProcess', array( &$this, &$data ));
                                                
$this->fnPayflowProcessTransaction( $data, $payflow_data );
                                                
$this->fnPayflowUnsetEditToken();
                                        }
 
                                        // expose a hook for any post processing
-                                       wfRunHooks( 
'PayflowGatewayPostProcess', array( $this, $data ));
+                                       wfRunHooks( 
'PayflowGatewayPostProcess', array( &$this, &$data ));
                                }
                        } else {
                                //Display form for the first time



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

Reply via email to