mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
phpgw_exit() can now call phpgw_footer() before it exits
This commit is contained in:
parent
7aa892762c
commit
c9ca56e4a6
@ -146,10 +146,13 @@
|
|||||||
|
|
||||||
// This function is used if the developer wants to stop a running app in the middle of execution
|
// 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
|
// We may need to do some clean up before hand
|
||||||
function phpgw_exit()
|
function phpgw_exit($call_footer = False)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
|
|
||||||
|
if ($call_footer) {
|
||||||
|
$this->phpgw_footer();
|
||||||
|
}
|
||||||
$phpgw->db->disconnect();
|
$phpgw->db->disconnect();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user