projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ebdf6
)
No exchange rate working in FA now (EXCHANGE-RATES.ORG). Fixed by @boxygen.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 7 Sep 2021 09:16:15 +0000
(11:16 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 7 Sep 2021 09:16:15 +0000
(11:16 +0200)
gl/includes/db/gl_db_rates.inc
patch
|
blob
|
history
diff --git
a/gl/includes/db/gl_db_rates.inc
b/gl/includes/db/gl_db_rates.inc
index 525a6e2eea151696f44f61e2f28209021cb4715e..462e92cd164d00a325d09413c3d89b214b4f824e 100644
(file)
--- a/
gl/includes/db/gl_db_rates.inc
+++ b/
gl/includes/db/gl_db_rates.inc
@@
-237,8
+237,7
@@
function get_extern_rate($curr_b, $provider, $date)
}
elseif ($provider == 'EXCHANGE-RATES.ORG')
{
- $val = getInnerStr($contents, '<span id="ctl00_M_lblToAmount">', '<');
- $val = str_replace (',', '', $val);
+ $val = getInnerStr($contents, "1 $curr_b = ",$curr_a);
}
return $val;
} /* end function get_extern_rate */