From 8ec095d9d62dff068d465bac7ccd1e437e458384 Mon Sep 17 00:00:00 2001 From: SerHack <27734319+serhack@users.noreply.github.com> Date: Thu, 21 Jun 2018 18:24:41 +0200 Subject: [PATCH] Fix #62 . Thanks @moryoav --- monero/include/monero_payments.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 3a8f0aa..8f1e030 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -77,8 +77,8 @@ class Monero_Gateway extends WC_Payment_Gateway if (is_admin()) { /* Save Settings */ add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options')); - add_filter('woocommerce_currencies', 'add_my_currency'); - add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2); + add_filter('woocommerce_currencies', array($this,'add_my_currency')); + add_filter('woocommerce_currency_symbol', array($this,'add_my_currency_symbol'), 10, 2); add_action('woocommerce_email_before_order_table', array($this, 'email_instructions'), 10, 2); } $this->monero_daemon = new Monero_Library($this->host, $this->port); @@ -190,7 +190,7 @@ class Monero_Gateway extends WC_Payment_Gateway return $currencies; } - function add_my_currency_symbol($currency_symbol, $currency) + public function add_my_currency_symbol($currency_symbol, $currency) { switch ($currency) { case 'XMR':