diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 7e5778725d7..1b43f6499cc 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -525,7 +525,7 @@ else * \param title Titre page web * \param disablejs N'affiche pas les liens vers les js (Ex: qd fonction utilisée par sous formulaire Ajax) */ -function top_htmlhead($head, $title='', $disablejs=0) +function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0) { global $user, $conf, $langs, $db, $micro_start_time; @@ -542,7 +542,9 @@ function top_htmlhead($head, $title='', $disablejs=0) //print ''; print "\n"; print "\n"; - print "\n"; + if ($disablehead == 0) + { + print "\n"; print $langs->lang_header(); print $head; @@ -587,8 +589,8 @@ function top_htmlhead($head, $title='', $disablejs=0) if (! $disablejs && ($conf->use_javascript || $conf->use_ajax)) { - print ''."\n"; - } + print ''."\n"; + } if (! $disablejs && $conf->use_ajax) { print ''."\n"; @@ -598,6 +600,7 @@ function top_htmlhead($head, $title='', $disablejs=0) } print "\n"; + } } /** diff --git a/htdocs/societe/ajaxcountries.php b/htdocs/societe/ajaxcountries.php index c522a8eb488..3f72d618755 100644 --- a/htdocs/societe/ajaxcountries.php +++ b/htdocs/societe/ajaxcountries.php @@ -28,7 +28,7 @@ require('../main.inc.php'); -top_htmlhead("", "", 1); +top_htmlhead("", "", 1, 1); print '';