diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index fee9f3ab22e..7dd34a9cffd 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -759,7 +759,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs //print ''; print "\n"; print "\n"; - if ($disablehead == 0) + if (empty($disablehead)) { print "\n"; @@ -890,6 +890,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print "\n\n"; } + + $conf->headerdone=1; // To tell header was output } @@ -910,6 +912,11 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a if (! $conf->top_menu) $conf->top_menu ='eldy_backoffice.php'; if (! $conf->left_menu) $conf->left_menu='eldy_backoffice.php'; + + // For backward compatibility with old modules + if (empty($conf->headerdone)) top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); + + print '
'; /*