diff --git a/app/Http/Controllers/MoonsController.php b/app/Http/Controllers/MoonsController.php index 89b94d435..52622fec0 100644 --- a/app/Http/Controllers/MoonsController.php +++ b/app/Http/Controllers/MoonsController.php @@ -57,9 +57,9 @@ class MoonsController extends Controller $html .= '' . $moon->FourthOre . ''; $html .= '' . $moon->FourthQuantity . ''; if($type == 'W4RP') { - $html .= '' . number_format($price['alliance'], 0, ".", ",") . ''; + $html .= '' . $price['alliance'] . ''; } else if ($type == 'Legacy') { - $html .= '' . number_format($price['outofalliance'], 0, ".", ",") . ''; + $html .= '' . $price['outofalliance'] . ''; } else { $html .= 'N/A'; } diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index bdd455a7f..88ec56418 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -213,8 +213,8 @@ class MoonCalc { $rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00); $rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00); //Format the rental price to the appropriate number - $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], "2", ".", ","); - $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], "2", ".", ","); + $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], 0, ".", ","); + $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], 0, ".", ","); //Return the rental price to the caller return $rentalPrice; @@ -272,8 +272,8 @@ class MoonCalc { $rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00); $rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00); //Format the rental price to the appropriate number - $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], "2", ".", ","); - $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], "2", ".", ","); + $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], 0, ".", ","); + $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], 0, ".", ","); //Return the rental price to the caller return $rentalPrice;