diff --git a/functions.php b/functions.php index b3d1ab4..a6b75ef 100644 --- a/functions.php +++ b/functions.php @@ -1098,13 +1098,14 @@ HTML; $r .= ''; $r .= '
'; - + // TODO Не забыть включить отображение всплывашки с названием предмета! if ($user['r1'] > 0) { $dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc(); if ($dress['includemagicdex'] && ($battle && $me)) { $r .= showhrefmagic($dress); } else { - $r .= '" . ((!empty($dress['text'])) ? "
{$dress['text']}" : "") . '" />'; + #$r .= '" . ((!empty($dress['text'])) ? "
{$dress['text']}" : "") . '" />'; + $r .= item('i/sh/' . $dress['img'])." "; } } else { #$r .= ''; @@ -1116,7 +1117,8 @@ HTML; if ($dress['includemagicdex'] && ($battle && $me)) { $r .= showhrefmagic($dress); } else { - $r .= '" . ((!empty($dress['text'])) ? "
{$dress['text']}" : "") . '" />'; + #$r .= '" . ((!empty($dress['text'])) ? "
{$dress['text']}" : "") . '" />'; + $r .= item('i/sh/' . $dress['img'])." "; } } else { #$r .= '';