FIX : Check for old picture name if the new one was not found
This commit is contained in:
parent
1aa2b7a164
commit
2a7b3c7d7d
@ -1783,6 +1783,12 @@ foreach($mainmenuusedarray as $val)
|
||||
$found=1;
|
||||
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
|
||||
if (! $found)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user