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:
Nathan Gray 2013-03-18 23:22:51 +00:00
parent cbbd03f388
commit ab601bf94c

View File

@ -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();