forked from extern/egroupware
Fixed navbar showing up twice when using frames and calling phpgw_header() manually
This commit is contained in:
parent
96791d2cad
commit
3a1c8acfbb
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
if ($navbarframe) {
|
if ($navbarframe) {
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
$phpgw->common->navbar();
|
$phpgw->common->navbar(True);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
|
@ -294,9 +294,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function navbar()
|
function navbar($force = False)
|
||||||
{
|
{
|
||||||
global $cd,$phpgw,$phpgw_info,$colspan,$PHP_SELF;
|
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 = new Template($phpgw_info["server"]["template_dir"]);
|
||||||
$tpl->set_file(array("navbar" => "navbar.tpl",
|
$tpl->set_file(array("navbar" => "navbar.tpl",
|
||||||
"navbar_row" => "navbar_row.tpl",
|
"navbar_row" => "navbar_row.tpl",
|
||||||
|
Loading…
Reference in New Issue
Block a user