X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=modules.php;h=f89ea6c6e345a2fdc67997911f1658dd4c35bcc8;hb=5736dfb1b51bff78b3594a166f350e76784fa0ff;hp=5dcf9f06cf57dc65778c118b2fa20462f340a609;hpb=3849b8cc90bcf2a7f3b2e128e52b949f93abc84f;p=mailer.git diff --git a/modules.php b/modules.php index 5dcf9f06cf..f89ea6c6e3 100644 --- a/modules.php +++ b/modules.php @@ -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;