mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed navbar showing up twice when using frames and calling phpgw_header() manually
This commit is contained in:
parent
96791d2cad
commit
3a1c8acfbb
@ -72,7 +72,7 @@
|
||||
|
||||
$phpgw->common->phpgw_header();
|
||||
$phpgw->common->navbar();
|
||||
|
||||
|
||||
$userData = $phpgw->accounts->read_userData($account_id);
|
||||
|
||||
$db_perms = $phpgw->accounts->read_apps($userData["account_lid"]);
|
||||
|
@ -50,7 +50,7 @@
|
||||
}
|
||||
if ($navbarframe) {
|
||||
$phpgw->common->phpgw_header();
|
||||
$phpgw->common->navbar();
|
||||
$phpgw->common->navbar(True);
|
||||
}
|
||||
} else {
|
||||
$phpgw->common->phpgw_header();
|
||||
|
@ -383,7 +383,7 @@
|
||||
\**************************************************************************/
|
||||
if (($phpgw_info["user"]["preferences"]["common"]["useframes"] && $phpgw_info["server"]["useframes"] == "allowed")
|
||||
|| ($phpgw_info["server"]["useframes"] == "always")) {
|
||||
$phpgw_info["flags"]["navbar_target"] = "phpgw_body";
|
||||
$phpgw_info["flags"]["navbar_target"] = "phpgw_body";
|
||||
}
|
||||
|
||||
/**************************************************************************\
|
||||
|
@ -294,9 +294,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
function navbar()
|
||||
function navbar($force = False)
|
||||
{
|
||||
global $cd,$phpgw,$phpgw_info,$colspan,$PHP_SELF;
|
||||
|
||||
if (($phpgw_info["user"]["preferences"]["common"]["useframes"] && $phpgw_info["server"]["useframes"] == "allowed")
|
||||
|| ($phpgw_info["server"]["useframes"] == "always")) {
|
||||
if (! $force) {
|
||||
return False;
|
||||
}
|
||||
}
|
||||
|
||||
$tpl = new Template($phpgw_info["server"]["template_dir"]);
|
||||
$tpl->set_file(array("navbar" => "navbar.tpl",
|
||||
"navbar_row" => "navbar_row.tpl",
|
||||
|
Loading…
Reference in New Issue
Block a user