Skip to content
Snippets Groups Projects
Commit 67e5001d authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

max lengh = 22

parent f319066e
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
if($shop['item']->getDisplayName() != null){ 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> '.$shop['item']->getDisplayName();
}else{ }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 // Si l'item est enchant, on va lui appliquer un style custom
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment