From 67e5001dd2e84c20ec559adf67562b2ecde5bfbe Mon Sep 17 00:00:00 2001 From: SofianeLasri <alasri250@gmail.com> Date: Sat, 15 Jan 2022 15:52:56 +0100 Subject: [PATCH] max lengh = 22 --- pages/client/shops.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/client/shops.php b/pages/client/shops.php index dca09bd8..eb2cb35e 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 -- GitLab