Ejegg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/277608

Change subject: Call instance method 'cause we have an instance
......................................................................

Call instance method 'cause we have an instance

Change-Id: I9d7a4bfb9d3c3baf952ea28e996db53644437d18
---
M gateway_common/DonationLoggerFactory.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/08/277608/1

diff --git a/gateway_common/DonationLoggerFactory.php 
b/gateway_common/DonationLoggerFactory.php
index 7e69ae3..ec71fe6 100644
--- a/gateway_common/DonationLoggerFactory.php
+++ b/gateway_common/DonationLoggerFactory.php
@@ -69,7 +69,7 @@
         * @return DonationProfiler
         */
        public static function getProfiler( GatewayType $adapter ) {
-               if ( $adapter::getGlobal( 'SaveCommStats' ) ) {
+               if ( $adapter->getGlobal( 'SaveCommStats' ) ) {
                        $commLogger = self::getLogger( $adapter, '_commstats' );
                } else {
                        $commLogger = null;
@@ -77,7 +77,7 @@
                return new DonationProfiler(
                        self::getLogger( $adapter ),
                        $commLogger,
-                       $adapter::getGatewayName()
+                       $adapter->getGatewayName()
                );
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/277608
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d7a4bfb9d3c3baf952ea28e996db53644437d18
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>

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

Reply via email to