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

fix

parent 82729cc2
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment