@@ -1047,6 +1047,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
...
@@ -1047,6 +1047,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$filescss=(array)$filescss;// To be sure filecss is an array
$filescss=(array)$filescss;// To be sure filecss is an array
foreach($filescssas$cssfile)
foreach($filescssas$cssfile)
{
{
if(empty($cssfile))dol_syslog("Warning: module ".$modcss." declared a css path file into its descriptor that is empty.",LOG_WARNING);
// cssfile is a relative path
// cssfile is a relative path
print'<!-- Includes CSS added by module '.$modcss.' -->'."\n".'<link rel="stylesheet" type="text/css" title="default" href="'.dol_buildpath($cssfile,1);
print'<!-- Includes CSS added by module '.$modcss.' -->'."\n".'<link rel="stylesheet" type="text/css" title="default" href="'.dol_buildpath($cssfile,1);
// We add params only if page is not static, because some web server setup does not return content type text/css if url has parameters, so browser cache is not used.
// We add params only if page is not static, because some web server setup does not return content type text/css if url has parameters, so browser cache is not used.