mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Make sure global categories is infolog when in infolog. Other apps (tracker) may grab it first if we don't set it here
This commit is contained in:
parent
cbbd03f388
commit
ab601bf94c
@ -91,6 +91,13 @@ class infolog_ui
|
||||
function __construct()
|
||||
{
|
||||
if ($GLOBALS['egw_info']['flags']['currentapp'] != 'infolog') translation::add_app('infolog');
|
||||
|
||||
// Make sure Global category is infolog - on first load, it may not be
|
||||
if($GLOBALS['egw_info']['flags']['currentapp'] == 'infolog' && !$GLOBALS['egw']->categories->app_name)
|
||||
{
|
||||
$GLOBALS['egw']->categories = new categories();
|
||||
}
|
||||
|
||||
$this->bo = new infolog_bo();
|
||||
|
||||
$this->tmpl = new etemplate();
|
||||
|
Loading…
Reference in New Issue
Block a user