From 699df96da5e36f359ad07e94c7cc9813ed037426 Mon Sep 17 00:00:00 2001 From: Peter Keung Date: Mon, 30 Apr 2018 16:52:23 -0700 Subject: [PATCH] PHP 7 compatibility --- classes/ezpaypalchecker.php | 4 ++-- classes/ezpaypalgateway.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/ezpaypalchecker.php b/classes/ezpaypalchecker.php index baa6a91..ca9dd3f 100644 --- a/classes/ezpaypalchecker.php +++ b/classes/ezpaypalchecker.php @@ -47,9 +47,9 @@ class eZPaypalChecker extends eZPaymentCallbackChecker Constructor. */ - function eZPaypalChecker( $iniFile ) + function __construct( $iniFile ) { - $this->eZPaymentCallbackChecker( $iniFile ); + parent::__construct( $iniFile ); $this->logger = eZPaymentLogger::CreateForAdd( 'var/log/eZPaypalChecker.log' ); } diff --git a/classes/ezpaypalgateway.php b/classes/ezpaypalgateway.php index 0e8d2d0..9e28872 100644 --- a/classes/ezpaypalgateway.php +++ b/classes/ezpaypalgateway.php @@ -47,7 +47,7 @@ class eZPaypalGateway extends eZRedirectGateway Constructor. */ - function eZPaypalGateway() + function __construct() { //__DEBUG__ $this->logger = eZPaymentLogger::CreateForAdd( "var/log/eZPaypalType.log" );