From c9ca56e4a61e702decda268320d47a45bada1cae Mon Sep 17 00:00:00 2001 From: jengo Date: Mon, 8 Jan 2001 09:53:40 +0000 Subject: [PATCH] phpgw_exit() can now call phpgw_footer() before it exits --- phpgwapi/inc/phpgw_common.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/phpgw_common.inc.php b/phpgwapi/inc/phpgw_common.inc.php index fb7527ec11..e6da129505 100644 --- a/phpgwapi/inc/phpgw_common.inc.php +++ b/phpgwapi/inc/phpgw_common.inc.php @@ -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; }