From e59a91bdae29d8f93994df2f8385c4e9f6b2edc4 Mon Sep 17 00:00:00 2001 From: Mavyre Date: Wed, 30 May 2018 21:12:28 +0200 Subject: [PATCH] Stopped using AJAX for the synchro --- htdocs/admin/multicurrency.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/htdocs/admin/multicurrency.php b/htdocs/admin/multicurrency.php index 33c00579b36..d4a031a6148 100644 --- a/htdocs/admin/multicurrency.php +++ b/htdocs/admin/multicurrency.php @@ -142,17 +142,7 @@ elseif ($action == 'update_currency') } elseif ($action == 'synchronize') { - $response = GETPOST('response'); - $response = json_decode($response); - - if ($response->success) - { - MultiCurrency::syncRates($response); - } - else - { - setEventMessages($langs->trans('multicurrency_syncronize_error', $response->error->info), null, 'errors'); - } + MultiCurrency::syncRates($conf->global->MULTICURRENCY_APP_ID); }