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:
Laurent Destailleur 2019-03-04 16:20:29 +01:00 committed by GitHub
commit acaf5cabef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)