Fix #62 . Thanks @moryoav

This commit is contained in:
SerHack 2018-06-21 18:24:41 +02:00 committed by GitHub
parent 55356ace73
commit 8ec095d9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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':