Merge pull request #10332 from ATM-Nicolas/fix_check_picture_name
FIX : Check for old picture name if the new one was not found
This commit is contained in:
commit
acaf5cabef
@ -1783,6 +1783,12 @@ foreach($mainmenuusedarray as $val)
|
|||||||
$found=1;
|
$found=1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (file_exists($dirroot."/".$val."/img/".$val.".png")) // Retro compatibilité
|
||||||
|
{
|
||||||
|
$url=dol_buildpath('/'.$val.'/img/'.$val.'.png', 1);
|
||||||
|
$found=1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Img file not found
|
// Img file not found
|
||||||
if (! $found)
|
if (! $found)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user