]> git.mxchange.org Git - mailer.git/blobdiff - inc/hooks.php
Rewrites of more constants
[mailer.git] / inc / hooks.php
index 8bc6463e56f97a86ff6865dc4297f7f62bd22022..366c386244a4aaff6e6121cc7a93c7ca648cb130 100644 (file)
@@ -40,14 +40,14 @@ if (!defined('__SECURITY')) {
 // Call-back function for running shutdown functions and close database connection
 function __SHUTDOWN_HOOK () {
        // Call the filter chain 'shutdown'
-       RUN_FILTER('shutdown', null, false);
+       runFilterChain('shutdown', null, false);
 
        if (SQL_IS_LINK_UP()) {
                // Close link
                SQL_CLOSE(__FILE__, __LINE__);
-       } else {
+       } elseif (!isInstalling()) {
                // No database link
-               addFatalMessage(getMessage('NO_DB_LINK'));
+               addFatalMessage(__FILE__, __LINE__, getMessage('NO_DB_LINK_SHUTDOWN'));
        }
 }