Correct "coinchoose" spelling in ticker code
This commit is contained in:
parent
028889584c
commit
8f33ceb3a4
@ -72,7 +72,7 @@ class Tools extends Base {
|
|||||||
**/
|
**/
|
||||||
private function getApiType($url) {
|
private function getApiType($url) {
|
||||||
if (preg_match('/coinchoose.com/', $url)) {
|
if (preg_match('/coinchoose.com/', $url)) {
|
||||||
return 'coinchose';
|
return 'coinchoose';
|
||||||
} else if (preg_match('/btc-e.nz/', $url)) {
|
} else if (preg_match('/btc-e.nz/', $url)) {
|
||||||
return 'btce';
|
return 'btce';
|
||||||
} else if (preg_match('/cryptopia.co.nz/', $url)) {
|
} else if (preg_match('/cryptopia.co.nz/', $url)) {
|
||||||
@ -103,7 +103,7 @@ class Tools extends Base {
|
|||||||
// if api data is valid, extract price depending on API type
|
// if api data is valid, extract price depending on API type
|
||||||
if (is_array($aData)) {
|
if (is_array($aData)) {
|
||||||
switch ($strApiType) {
|
switch ($strApiType) {
|
||||||
case 'coinchose':
|
case 'coinchoose':
|
||||||
foreach ($aData as $aItem) {
|
foreach ($aData as $aItem) {
|
||||||
if($strBase == $aItem[0])
|
if($strBase == $aItem[0])
|
||||||
return $aItem['price'];
|
return $aItem['price'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user