Fatal message removed in installation when the script is installed
authorRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 16:30:48 +0000 (16:30 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 16:30:48 +0000 (16:30 +0000)
inc/header.php

index 2050010..ce675dc 100644 (file)
@@ -80,7 +80,9 @@ if (($header != "1") && ($header != "2")) {
                        } else {
                                // Configuration not found!
                                define('__PAGE_TITLE', NO_CONFIG_FOUND_TITLE);
-                               ADD_FATAL(NO_CONFIG_FOUND);
+
+                               // Do not add the fatal message in installation mode
+                               if (basename($_SERVER['SELF']) != "install.php") ADD_FATAL(NO_CONFIG_FOUND);
                        }
                }