mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 11:08:34 +01:00
Debug v20
This commit is contained in:
@@ -4704,9 +4704,10 @@ function dol_trunc($string, $size = 40, $trunc = 'right', $stringencoding = 'UTF
|
||||
* Return the picto for a data type
|
||||
*
|
||||
* @param string $key Key
|
||||
* @param string $morecss Add more css to the object
|
||||
* @return string Pïcto for the key
|
||||
*/
|
||||
function getPictoForType($key)
|
||||
function getPictoForType($key, $morecss = '')
|
||||
{
|
||||
// Set array with type -> picto
|
||||
$type2picto = array(
|
||||
@@ -4740,10 +4741,10 @@ function getPictoForType($key)
|
||||
);
|
||||
|
||||
if (!empty($type2picto[$key])) {
|
||||
return img_picto('', $type2picto[$key], 'class="pictofixedwidth"');
|
||||
return img_picto('', $type2picto[$key], 'class="pictofixedwidth'.($morecss ? ' '.$morecss : '').'"');
|
||||
}
|
||||
|
||||
return img_picto('', 'generic', 'class="pictofixedwidth"');
|
||||
return img_picto('', 'generic', 'class="pictofixedwidth'.($morecss ? ' '.$morecss : '').'"');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user