fixed wrong redirects to home

This commit is contained in:
Ralf Becker 2005-06-20 20:38:39 +00:00
parent adaa4fb4a9
commit d3577414bc

View File

@ -98,11 +98,10 @@
}
if($GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] && !$hasupdates) {
Header('Location: ' . $GLOBALS['phpgw']->link('/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'].'/index.php'));
exit();
$GLOBALS['phpgw']->redirect_link('/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'].'/index.php');
}
else {
Header('Location: ' . $GLOBALS['phpgw']->link('home/index.php'));
$GLOBALS['phpgw']->redirect_link('/home/index.php');
}
}
@ -171,7 +170,7 @@
$GLOBALS['phpgw']->log->commit();
}
$GLOBALS['phpgw']->redirect_link('home/index.php');
$GLOBALS['phpgw']->redirect_link('/home/index.php');
}
if(!isset($GLOBALS['phpgw_info']['nofooter']))