From 60d89e6abfa4fc990caed58d1cdf8dc6644cc223 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 28 Dec 2018 01:16:35 +0200 Subject: [PATCH] tests --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 .= '';