Index: trunk/extensions/DonationInterface/extras/custom_filters/filters/source/source.body.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | public $cfo; |
17 | 17 | |
18 | 18 | public function __construct( &$gateway_adapter, &$custom_filter_object ) { |
19 | | - parent::__construct( &$gateway_adapter ); |
| 19 | + parent::__construct( $gateway_adapter ); |
20 | 20 | $this->cfo = & $custom_filter_object; |
21 | 21 | } |
22 | 22 | |
— | — | @@ -46,14 +46,14 @@ |
47 | 47 | return TRUE; |
48 | 48 | } |
49 | 49 | |
50 | | - static function onFilter( &$custom_filter_object ) { |
| 50 | + static function onFilter( &$gateway_adapter, &$custom_filter_object ) { |
51 | 51 | $gateway_adapter->debugarray[] = 'source onFilter hook!'; |
52 | | - return self::singleton( $custom_filter_object )->filter(); |
| 52 | + return self::singleton( $gateway_adapter, $custom_filter_object )->filter(); |
53 | 53 | } |
54 | 54 | |
55 | | - static function singleton( &$custom_filter_object ) { |
| 55 | + static function singleton( &$gateway_adapter, &$custom_filter_object ) { |
56 | 56 | if ( !self::$instance ) { |
57 | | - self::$instance = new self( $custom_filter_object ); |
| 57 | + self::$instance = new self( $gateway_adapter, $custom_filter_object ); |
58 | 58 | } |
59 | 59 | return self::$instance; |
60 | 60 | } |
Index: trunk/extensions/DonationInterface/extras/custom_filters/filters/referrer/referrer.body.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | public $cfo; |
17 | 17 | |
18 | 18 | public function __construct( &$gateway_adapter, &$custom_filter_object ) { |
19 | | - parent::__construct( &$gateway_adapter ); |
| 19 | + parent::__construct( $gateway_adapter ); |
20 | 20 | $this->cfo = & $custom_filter_object; |
21 | 21 | } |
22 | 22 | |
— | — | @@ -46,14 +46,14 @@ |
47 | 47 | return TRUE; |
48 | 48 | } |
49 | 49 | |
50 | | - static function onFilter( &$custom_filter_object ) { |
| 50 | + static function onFilter( &$gateway_adapter, &$custom_filter_object ) { |
51 | 51 | $gateway_adapter->debugarray[] = 'referrer onFilter hook!'; |
52 | | - return self::singleton( $custom_filter_object )->filter(); |
| 52 | + return self::singleton( $gateway_adapter, $custom_filter_object )->filter(); |
53 | 53 | } |
54 | 54 | |
55 | | - static function singleton( &$custom_filter_object ) { |
| 55 | + static function singleton( &$gateway_adapter, &$custom_filter_object ) { |
56 | 56 | if ( !self::$instance ) { |
57 | | - self::$instance = new self( $custom_filter_object ); |
| 57 | + self::$instance = new self( $gateway_adapter, $custom_filter_object ); |
58 | 58 | } |
59 | 59 | return self::$instance; |
60 | 60 | } |