Projekt

Allgemein

Profil

GX-Bug #45948 » CurrencyTEMPFix.patch

Till Tepelmann, 07.04.2016 13:32

Unterschiede anzeigen:

src/admin/currencies.php (revision )
89 89
			while ($currency = xtc_db_fetch_array($currency_query)) {
90 90
				$quote_function = 'quote_' . CURRENCY_SERVER_PRIMARY . '_currency';
91 91
				$rate = $quote_function($currency['code']);
92
				/*
92 93
				if ( (!$rate) && (CURRENCY_SERVER_BACKUP != '') ) {
93 94
					$quote_function = 'quote_' . CURRENCY_SERVER_BACKUP . '_currency';
94 95
					$rate = $quote_function($currency['code']);
95 96
				}
97
				*/
96 98
				if ($rate) {
97 99
					xtc_db_query("update " . TABLE_CURRENCIES . " set value = '" . $rate . "', last_updated = now() where currencies_id = '" . $currency['currencies_id'] . "'");
98 100
					$messageStack->add_session(sprintf(TEXT_INFO_CURRENCY_UPDATED, $currency['title'], $currency['code']), 'success');
src/admin/includes/functions/localization.php (revision )
32 32

  
33 33
function quote_oanda_currency($code, $base = DEFAULT_CURRENCY)
34 34
{
35
	$t_url = 'http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=' . $code .  '&format=CSV&dest=Get+Table&sel_list=' . $base;
35
	$t_url = 'https://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=' . $code .  '&format=CSV&dest=Get+Table&sel_list=' . $base;
36 36
	$page = quote_retrieve_url($t_url);
37 37

  
38 38
	$match = array();
    (1-1/1)