-// Call-back function for running shutdown functions and close database connection
-function __SHUTDOWN_HOOK () {
- // Call the filter chain 'shutdown'
- runFilterChain('shutdown', null, false);
-
- if (SQL_IS_LINK_UP()) {
- // Close link
- SQL_CLOSE(__FILE__, __LINE__);
- } elseif (!isInstalling()) {
- // No database link
- addFatalMessage(__FILE__, __LINE__, getMessage('NO_DB_LINK_SHUTDOWN'));
- }
-}
-