X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=modules.php;h=201f4cea38975f4dc895629353222dc2eed5e121;hp=7e8a0b2ea9657d6cbacc8cd7557a5c0a0ac96b90;hb=76b1b077bda73310c536f658d3a9bb5e12232f39;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/modules.php b/modules.php index 7e8a0b2ea9..201f4cea38 100644 --- a/modules.php +++ b/modules.php @@ -47,7 +47,7 @@ $GLOBALS['startTime'] = microtime(true); // Init output mode and module $GLOBALS['output_mode'] = '0'; -$GLOBALS['module'] = ''; +$GLOBALS['module'] = 'unknown'; // Needed include files require('inc/config-global.php'); @@ -56,7 +56,13 @@ require('inc/config-global.php'); setContentType('text/html'); // Fix missing module to 'index' -if (!isGetRequestElementSet('module')) setRequestGetElement('module', 'index'); +if (!isGetRequestElementSet('module')) { + // Set element + setRequestGetElement('module', 'index'); + + // ... and module + setModule('index'); +} // END - if // The header file loadIncludeOnce('inc/header.php');