replace edo with core team in statu setup info

redirect to about.php when default application is available as link
This commit is contained in:
Pim Snel 2007-03-29 20:22:07 +00:00
parent eb4efca847
commit 84737d0d70
2 changed files with 12 additions and 4 deletions

View File

@ -18,7 +18,7 @@
$setup_info['home']['app_order'] = 1;
$setup_info['home']['enable'] = 1;
$setup_info['home']['author'] = 'Edo van Bruggen';
$setup_info['home']['author'] = 'eGroupWare Core Team';
$setup_info['home']['license'] = 'GPL';
$setup_info['home']['description'] = 'Displays eGroupWare\' homepage';
$setup_info['home']['maintainer'] = array(

View File

@ -90,13 +90,21 @@
}
if($GLOBALS['egw_info']['user']['preferences']['common']['default_app'] && !$hasupdates)
{
$GLOBALS['egw']->redirect_link('/'.$GLOBALS['egw_info']['user']['preferences']['common']['default_app'].'/index.php');
/** Test if our default app is available else open about.php */
if(is_file('./'.$GLOBALS['egw_info']['user']['preferences']['common']['default_app'].'/index.php'))
{
$GLOBALS['egw']->redirect_link('/'.$GLOBALS['egw_info']['user']['preferences']['common']['default_app'].'/index.php');
}
else
{
$GLOBALS['egw']->redirect_link('/about.php');
}
}
else
{
$GLOBALS['egw']->redirect_link('/home/index.php');
$GLOBALS['egw']->redirect_link('/home/index.php');
}
}
}
if($windowed && $_GET['cd'] == 'yes')
{