Fix: add MAIN_HIDE_LEFT_MENU

This commit is contained in:
Regis Houssin 2012-05-07 17:05:15 +02:00
parent f6aadae900
commit bfb102db18

View File

@ -781,7 +781,9 @@ if (! function_exists("llxHeader"))
{ {
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring); top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring);
if (empty($conf->global->MAIN_HIDE_LEFT_MENU)) {
left_menu('', $help_url, '', '', 1, $title); left_menu('', $help_url, '', '', 1, $title);
}
main_area($title); main_area($title);
} }
} }
@ -1176,7 +1178,6 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
$top_menu=empty($conf->browser->phone)?$conf->top_menu:$conf->smart_menu; $top_menu=empty($conf->browser->phone)?$conf->top_menu:$conf->smart_menu;
if (GETPOST('menu')) $top_menu=GETPOST('menu'); // menu=eldy_backoffice.php if (GETPOST('menu')) $top_menu=GETPOST('menu'); // menu=eldy_backoffice.php
// Load the top menu manager
// Load the top menu manager (only if not already done) // Load the top menu manager (only if not already done)
if (! class_exists('MenuTop')) if (! class_exists('MenuTop'))
{ {