fixed Stylite or Pixelegg template allways goes to calendar after login

This commit is contained in:
Ralf Becker 2014-02-14 15:25:30 +00:00
parent 61e98b8149
commit 32c9cb80fd

View File

@ -97,7 +97,7 @@ if(@file_exists($tpl_info))
}
// until home works again, we redirect to default_app from prefs (if set and not home) or calendar, if allowed, or first app found
if ($app == 'home')
if ($app == 'home' && !($GLOBALS['egw']->framework instanceof jdots_framework))
{
$app = $GLOBALS['egw_info']['user']['preferences']['common']['default_app'];
if (!$app || $app == 'home') $app = isset($GLOBALS['egw_info']['user']['apps']['calendar']) ? 'calendar' : key($GLOBALS['egw_info']['user']['apps']);