The hacky way simplified. Removed variable

This commit is contained in:
jamieede 2014-03-12 17:20:22 +00:00
parent 790617dd11
commit 0b765417f2

View File

@ -68,7 +68,6 @@ class Tools extends Base {
public function getPrice() {
$aData = $this->getApi($this->config['price']['url'], $this->config['price']['target']);
$strCurrency = $this->config['currency'];
$strCurrencyBTC = "$strCurrency/BTC";
// Check the API type for configured URL
if (!$strApiType = $this->getApiType($this->config['price']['url']))
return false;
@ -88,7 +87,7 @@ class Tools extends Base {
return @$aData['return']['markets'][$strCurrency]['lasttradeprice'];
break;
case 'cryptorush':
return @$aData[$strCurrencyBTC]['last_trade'];
return @$aData["$strCurrency/BTC"]['last_trade'];
break;
}
} else {