From 25416473eb84ae2d9085b2cf88b51ed8437519ac Mon Sep 17 00:00:00 2001 From: SerHack <27734319+serhack@users.noreply.github.com> Date: Wed, 3 Jul 2019 10:40:26 +0200 Subject: [PATCH] Update class-monero-gateway.php --- include/class-monero-gateway.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class-monero-gateway.php b/include/class-monero-gateway.php index c95e281..6d0f68d 100644 --- a/include/class-monero-gateway.php +++ b/include/class-monero-gateway.php @@ -87,6 +87,10 @@ class Monero_Gateway extends WC_Payment_Gateway $explorer_url = self::$testnet ? MONERO_GATEWAY_TESTNET_EXPLORER_URL : MONERO_GATEWAY_MAINNET_EXPLORER_URL; defined('MONERO_GATEWAY_EXPLORER_URL') || define('MONERO_GATEWAY_EXPLORER_URL', $explorer_url); + // Add the currency of the shop to $currencies array. Needed for do_update_event() function + $currency_shop = get_woocommerce_currency(); + array_push(self::$currencies, $currency_shop); + if($add_action) add_action('woocommerce_update_options_payment_gateways_'.$this->id, array($this, 'process_admin_options'));