diff --git a/pages/client/shops.php b/pages/client/shops.php index dca09bd8467fefa3093f7f2085bdb9c945b91df1..eb2cb35e277cd2004648f1514152a3571b104e59 100644 --- a/pages/client/shops.php +++ b/pages/client/shops.php @@ -91,7 +91,7 @@ if($shop['item']->getDisplayName() != null){ $displayName = '<i class="icon-minecraft icon-minecraft-name-tag"></i> '.$shop['item']->getDisplayName(); }else{ - $displayName = $shop['item']->getLabel(); + $displayName = (strlen($shop['item']->getLabel()) > 22) ? substr($shop['item']->getLabel(),0,19).'...' : $shop['item']->getLabel(); } // Si l'item est enchant, on va lui appliquer un style custom