PR REQUEST #19679
This commit is contained in:
parent
dfa2cab408
commit
e212395f00
@ -1766,6 +1766,14 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//If you want to load custom javascript file from your selected theme directory
|
||||
if (!empty($conf->global->ALLOW_THEME_JS)) {
|
||||
$theme_js = dol_buildpath('/theme/'.$conf->theme.'/'.$conf->theme.'.js', 0);
|
||||
if (file_exists($theme_js)) {
|
||||
print '<script src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/'.$conf->theme.'.js'.($ext ? '?'.$ext : '').'"></script>'."\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($head)) {
|
||||
print $head."\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user