diff --git a/public/include/classes/tools.class.php b/public/include/classes/tools.class.php
index a272761e..210e27e0 100644
--- a/public/include/classes/tools.class.php
+++ b/public/include/classes/tools.class.php
@@ -57,6 +57,8 @@ class Tools extends Base {
return 'cryptsy';
} else if (preg_match('/cryptorush.in/', $url)) {
return 'cryptorush';
+ } else if (preg_match('/mintpal.com/', $url)) {
+ return 'mintpal';
}
$this->setErrorMessage("API URL unknown");
return false;
@@ -87,7 +89,10 @@ class Tools extends Base {
return @$aData['return']['markets'][$strCurrency]['lasttradeprice'];
break;
case 'cryptorush':
- return @$aData["$strCurrency/" . $this->config['price']['target']]['last_trade'];
+ return @$aData["$strCurrency/" . $this->config['price']['currency']]['last_trade'];
+ break;
+ case 'mintpal':
+ return @$aData['0']['last_price'];
break;
}
} else {
diff --git a/public/templates/mpos/global/navigation.tpl b/public/templates/mpos/global/navigation.tpl
index f6198031..27a753ef 100644
--- a/public/templates/mpos/global/navigation.tpl
+++ b/public/templates/mpos/global/navigation.tpl
@@ -55,7 +55,7 @@
Sign Up
{/if}
{acl_check icon='icon-mail' page='contactform' action='' name='Contact' acl=$GLOBAL.acl.contactform}
- Terms and Conditions
+ Terms & Conditions
diff --git a/public/templates/mpos/statistics/round/pplns_round_shares.tpl b/public/templates/mpos/statistics/round/pplns_round_shares.tpl
index 207a2bd7..9272a07a 100644
--- a/public/templates/mpos/statistics/round/pplns_round_shares.tpl
+++ b/public/templates/mpos/statistics/round/pplns_round_shares.tpl
@@ -18,7 +18,7 @@
{if $PPLNSROUNDSHARES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$PPLNSROUNDSHARES[contrib].username|default:"unknown"|escape}{/if} |
{$PPLNSROUNDSHARES[contrib].pplns_valid|number_format} |
{$PPLNSROUNDSHARES[contrib].pplns_invalid|number_format} |
- {if $PPLNSROUNDSHARES[contrib].pplns_invalid > 0 && $PPLNSROUNDSHARES[contrib].pplns_valid > 0}{(($PPLNSROUNDSHARES[contrib].pplns_invalid / ($PPLNSROUNDSHARES[contrib].pplns_valid + $PPLNSROUNDSHARES[contrib].pplns_invalid)) * 100)|number_format:"2"|default:"0"}{else}0.00{/if} |
+ {if $PPLNSROUNDSHARES[contrib].pplns_invalid > 0 && $PPLNSROUNDSHARES[contrib].pplns_valid > 0}{($PPLNSROUNDSHARES[contrib].pplns_invalid / $PPLNSROUNDSHARES[contrib].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if} |
{/section}
diff --git a/public/templates/mpos/statistics/round/round_shares.tpl b/public/templates/mpos/statistics/round/round_shares.tpl
index 1a9a76f1..a941f917 100644
--- a/public/templates/mpos/statistics/round/round_shares.tpl
+++ b/public/templates/mpos/statistics/round/round_shares.tpl
@@ -19,7 +19,7 @@
{if $data.is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$data.username|default:"unknown"|escape}{/if} |
{$data.valid|number_format} |
{$data.invalid|number_format} |
- {if $data.invalid > 0 }{(($data.invalid / ($data.valid + $data.invalid) * 100)|number_format:"2"|default:"0"}{else}0.00{/if} |
+ {if $data.invalid > 0 }{($data.invalid / $data.valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if} |
{/foreach}