Stopped using AJAX for the synchro

This commit is contained in:
Mavyre 2018-05-30 21:12:28 +02:00 committed by GitHub
parent c30cab0ab3
commit e59a91bdae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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