]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
TODOs.txt updated, template fixed
[mailer.git] / inc / install-inc.php
index fa17cf66ce4e2c5cee8276512338fb45d1be0983..83571f7071a58847cf8cd188152fa28142a5db2c 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -99,7 +100,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        if (empty($mysql['host']))   $mysql['host']   = 'localhost';
                        if (empty($mysql['prefix'])) $mysql['prefix'] = 'mxchange';
                        if (empty($mysql['type']))   $mysql['type']   = 'MyISAM';
-                       if (getTotalFatalErrors() > 0) {
+                       if (ifFatalErrorsDetected()) {
                                addToInstallContent('<div class="install_fatal">');
                                foreach (getFatalArray() as $key => $err) {
                                        addToInstallContent('<div class="para"><strong>&middot;</strong>&nbsp;{--FATAL_NO--}' . ($key + 1) . ':&nbsp;' . $err . '</div>');
@@ -202,7 +203,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                                        addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_MISSING_DUMPS'));
                                                } // END - if
 
-                                               if (getTotalFatalErrors() == '0') {
+                                               if (!ifFatalErrorsDetected()) {
                                                        // Set type and prefix from POST data
                                                        setConfigEntry('_TABLE_TYPE'  , postRequestParameter('mysql', 'type'));
                                                        setConfigEntry('_MYSQL_PREFIX', postRequestParameter('mysql', 'prefix'));
@@ -227,7 +228,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                                        //* DEBUG: */ die('<pre>'.print_r(getSqls(), true).'</pre>');
 
                                                        // Are some SQLs found?
-                                                       if (countSqls() == '0') {
+                                                       if (countSqls() == 0) {
                                                                // Abort here
                                                                addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED'));
                                                                return;
@@ -242,7 +243,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                        } // END - if
                                } // END - if
 
-                               if (getTotalFatalErrors() > 0) {
+                               if (ifFatalErrorsDetected()) {
                                        $OUT = '';
                                        foreach (getFatalArray() as $value) {
                                                $OUT .= '    <li>' . $value . '</li>';