mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Home progress:
- Allow home again
This commit is contained in:
parent
321bc14ba3
commit
ea3e642a0c
11
index.php
11
index.php
@ -96,17 +96,8 @@ 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' && !$api_requested && !($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']);
|
||||
egw::redirect(egw_framework::index($app), $app);
|
||||
}
|
||||
// until home works again, we build new frameset for jdots template
|
||||
if ($app == 'home' && !$api_requested && $GLOBALS['egw']->framework instanceof jdots_framework) $_GET['cd'] = 'yes';
|
||||
|
||||
if($app == 'home' && !$api_requested && !($windowed && $_GET['cd'] == 'yes' && !html::$ua_mobile))
|
||||
if($app == 'home' && !$class && !$api_requested && !($windowed && $_GET['cd'] == 'yes' && !html::$ua_mobile))
|
||||
{
|
||||
if ($GLOBALS['egw_info']['server']['force_default_app'] && $GLOBALS['egw_info']['server']['force_default_app'] != 'user_choice')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user