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