Update class-monero-gateway.php

This commit is contained in:
SerHack 2019-07-03 10:40:26 +02:00 committed by GitHub
parent a3e10ab36f
commit 25416473eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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'));