make class greater:modificators

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 18:19:56 +02:00
parent 04b7c33e9d
commit 51c9b29cfb

View File

@ -24,7 +24,7 @@ class ShopItem extends Item
*/ */
public function printControls() public function printControls()
{ {
$btnPrice = 'Купить за' . intval($this->cost) . 'кр.'; $btnPrice = 'Купить за ' . intval($this->cost) . ' кр.';
echo <<<BTN echo <<<BTN
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="{$btnPrice}" <p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="{$btnPrice}"
onclick="location='/admin.php'"> onclick="location='/admin.php'">