phpgw_exit() can now call phpgw_footer() before it exits

This commit is contained in:
jengo 2001-01-08 09:53:40 +00:00
parent 7aa892762c
commit c9ca56e4a6

View File

@ -146,10 +146,13 @@
// This function is used if the developer wants to stop a running app in the middle of execution
// We may need to do some clean up before hand
function phpgw_exit()
function phpgw_exit($call_footer = False)
{
global $phpgw;
if ($call_footer) {
$this->phpgw_footer();
}
$phpgw->db->disconnect();
exit;
}