Fix bad links with mobile

This commit is contained in:
Laurent Destailleur 2018-01-10 13:14:30 +01:00
parent ae59ca43cc
commit e141d43999

View File

@ -1004,7 +1004,10 @@ class FormOther
if (! empty($boxidactivatedforuser[$box->id])) continue; // Already visible for user
$label=$langs->transnoentitiesnoconv($box->boxlabel);
//if (preg_match('/graph/',$box->class)) $label.=' ('.$langs->trans("Graph").')';
if (preg_match('/graph/',$box->class)) $label=$label.' <span class="fa fa-bar-chart"></span>';
if (preg_match('/graph/',$box->class) && empty($conf->browser->phone))
{
$label=$label.' <span class="fa fa-bar-chart"></span>';
}
$arrayboxtoactivatelabel[$box->id]=$label; // We keep only boxes not shown for user, to show into combo list
}
foreach($boxidactivatedforuser as $boxid)