forked from extern/egroupware
fixed a view double displays of the navbar
This commit is contained in:
parent
4d8837f848
commit
347619b0d2
@ -398,16 +398,8 @@
|
|||||||
|
|
||||||
|
|
||||||
function delete_locale()
|
function delete_locale()
|
||||||
{
|
|
||||||
if(!$this->bo->total)
|
|
||||||
{
|
{
|
||||||
$this->admin();
|
$this->admin();
|
||||||
}
|
|
||||||
|
|
||||||
unset($GLOBALS['egw_info']['flags']['noheader']);
|
|
||||||
unset($GLOBALS['egw_info']['flags']['nonavbar']);
|
|
||||||
$GLOBALS['egw_info']['flags']['noappfooter'] = True;
|
|
||||||
$GLOBALS['egw']->common->egw_header();
|
|
||||||
|
|
||||||
$p =& CreateObject('phpgwapi.Template',$this->template_dir);
|
$p =& CreateObject('phpgwapi.Template',$this->template_dir);
|
||||||
$p->set_file(Array('form'=>'delete_common.tpl','form_button'=>'form_button_script.tpl'));
|
$p->set_file(Array('form'=>'delete_common.tpl','form_button'=>'form_button_script.tpl'));
|
||||||
@ -441,7 +433,7 @@
|
|||||||
|
|
||||||
if(!$holiday)
|
if(!$holiday)
|
||||||
{
|
{
|
||||||
$this->edit_locale();
|
return $this->edit_locale();
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($GLOBALS['egw_info']['flags']['noheader']);
|
unset($GLOBALS['egw_info']['flags']['noheader']);
|
||||||
@ -479,7 +471,7 @@
|
|||||||
{
|
{
|
||||||
if(!@$this->bo->locales[0])
|
if(!@$this->bo->locales[0])
|
||||||
{
|
{
|
||||||
$this->admin();
|
return $this->admin();
|
||||||
}
|
}
|
||||||
$this->bo->year = 0; // for a complete list with all years
|
$this->bo->year = 0; // for a complete list with all years
|
||||||
$holidays = $this->bo->get_holiday_list();
|
$holidays = $this->bo->get_holiday_list();
|
||||||
|
Loading…
Reference in New Issue
Block a user