]> git.mxchange.org Git - mailer.git/blobdiff - modules.php
TODOs.txt updated
[mailer.git] / modules.php
index 5dcf9f06cf57dc65778c118b2fa20462f340a609..f89ea6c6e345a2fdc67997911f1658dd4c35bcc8 100644 (file)
@@ -56,15 +56,6 @@ require('inc/config-global.php');
 // Set content type
 setContentType('text/html');
 
-// Fix missing module to 'index'
-if (!isGetRequestParameterSet('module')) {
-       // Set element
-       setGetRequestParameter('module', 'index');
-
-       // ... and module
-       setModule('index');
-} // END - if
-
 // The header file
 loadIncludeOnce('inc/header.php');
 
@@ -98,6 +89,9 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (
 
                                // Module not found!
                                addFatalMessage(__FILE__, __LINE__, getMaskedMessage('MODULE_REGISTRY_404', getModule()));
+
+                               // Set module to error module (non-existent!)
+                               setModule('error');
                        }
                        break;