2
0
forked from Wavyzz/dolibarr

Fix: alternative url were sometimes relative to server, sometimes to

DOL_URL_ROOT. Fix to be always relative to DOL_URL_ROOT.
This commit is contained in:
Laurent Destailleur
2013-07-15 00:58:40 +02:00
parent 254f46752e
commit d637212dce
3 changed files with 11 additions and 6 deletions

View File

@@ -1729,7 +1729,7 @@ function img_picto($alt, $picto, $options = '', $pictoisfullpath = false, $srcon
if ($type == 'main') continue;
if (file_exists($dirroot.'/'.$path.'/img/'.$picto))
{
$url=$conf->file->dol_url_root[$type];
$url=DOL_URL_ROOT.$conf->file->dol_url_root[$type];
break;
}
}