Rewrites for installation phase:
[mailer.git] / inc / install-inc.php
index 0b8928b..a4288ac 100644 (file)
@@ -193,6 +193,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                initSqls();
 
                                // Connect to MySQL server
+                               restore_error_handler();
                                SQL_CONNECT($GLOBALS['install_mysql']['host'], $GLOBALS['install_mysql']['login'], $GLOBALS['install_mysql']['pass1'], __FILE__, __LINE__);
 
                                // Is the link up?
@@ -267,6 +268,9 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
 
                                        // Load template
                                        addTemplateToInstallContent('install_fatal_errors', $content);
+
+                                       // We have handled all fatal errors here
+                                       initFatalMessages();
                                } else {
                                        // Installation is done!
                                        redirectToUrl('install.php?page=finished');