forked from Wavyzz/dolibarr
Merge branch 'develop' of github.com:Dolibarr/dolibarr into dev_tasklist_columnAndExtrafields
This commit is contained in:
@@ -3305,6 +3305,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
}
|
||||
|
||||
// If we ask an image into $url/$mymodule/img (instead of default path)
|
||||
$regs = array();
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i', $picto, $regs)) {
|
||||
$picto = $regs[1];
|
||||
$path = $regs[2]; // $path is $mymodule
|
||||
@@ -8425,16 +8426,16 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
||||
|
||||
// For backward compatibility. Image's filename are still in French, so we use this array to convert
|
||||
$statusImg = array(
|
||||
'status0' => 'statut0'
|
||||
,'status1' => 'statut1'
|
||||
,'status2' => 'statut2'
|
||||
,'status3' => 'statut3'
|
||||
,'status4' => 'statut4'
|
||||
,'status5' => 'statut5'
|
||||
,'status6' => 'statut6'
|
||||
,'status7' => 'statut7'
|
||||
,'status8' => 'statut8'
|
||||
,'status9' => 'statut9'
|
||||
'status0' => 'statut0',
|
||||
'status1' => 'statut1',
|
||||
'status2' => 'statut2',
|
||||
'status3' => 'statut3',
|
||||
'status4' => 'statut4',
|
||||
'status5' => 'statut5',
|
||||
'status6' => 'statut6',
|
||||
'status7' => 'statut7',
|
||||
'status8' => 'statut8',
|
||||
'status9' => 'statut9'
|
||||
);
|
||||
|
||||
if (!empty($statusImg[$statusType])) {
|
||||
|
||||
Reference in New Issue
Block a user