From efa5f1f46f80f8cb4da712353d4b804007a7b8eb Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Fri, 25 Oct 2019 15:29:00 +0200 Subject: [PATCH 1/2] Bugfix: Undefined class constant 'XML_PATH_LOG_ENABLED' --- app/code/community/Mollie/Mpm/Model/Mollie.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/code/community/Mollie/Mpm/Model/Mollie.php b/app/code/community/Mollie/Mpm/Model/Mollie.php index 1dfa3177..c4ec12bb 100644 --- a/app/code/community/Mollie/Mpm/Model/Mollie.php +++ b/app/code/community/Mollie/Mpm/Model/Mollie.php @@ -342,9 +342,13 @@ public function getOrderIdByTransactionId($transactionId) */ private function commitOrder(Mage_Sales_Model_Order $order) { + $systemLogIsDisabled = false; + if (defined('Mage_Log_Helper_Data::XML_PATH_LOG_ENABLED')) { + $systemLogIsDisabled = $this->mollieHelper->getStoreConfig(Mage_Log_Helper_Data::XML_PATH_LOG_ENABLED) == '0'; + } + $logObserver = Mage::getConfig()->getNode('frontend/events/controller_action_postdispatch/observers/log'); $logObserverIsDisabled = $logObserver && $logObserver->type == 'disabled'; - $systemLogIsDisabled = $this->mollieHelper->getStoreConfig(Mage_Log_Helper_Data::XML_PATH_LOG_ENABLED) == '0'; if (!$logObserverIsDisabled && !$systemLogIsDisabled) { return; From 35937526044e76dcc6b313dcb5f5313f5d1ec461 Mon Sep 17 00:00:00 2001 From: Marvin-Magmodules Date: Sun, 27 Oct 2019 14:03:46 +0100 Subject: [PATCH 2/2] Version bump --- app/code/community/Mollie/Mpm/etc/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Mollie/Mpm/etc/config.xml b/app/code/community/Mollie/Mpm/etc/config.xml index f75a8db9..e603c91b 100644 --- a/app/code/community/Mollie/Mpm/etc/config.xml +++ b/app/code/community/Mollie/Mpm/etc/config.xml @@ -33,7 +33,7 @@ - 5.5.2 + 5.5.3