X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=modules.php;h=f89ea6c6e345a2fdc67997911f1658dd4c35bcc8;hb=84e09efe24aa3fb5622c2d19b75df8fd52ac7bed;hp=5dcf9f06cf57dc65778c118b2fa20462f340a609;hpb=fc162164725588cf75969f707faead9c9cd8e68b;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;