X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=modules.php;h=201f4cea38975f4dc895629353222dc2eed5e121;hb=4e88383f61722337b6d85c8635e4b9a3f018f387;hp=7e8a0b2ea9657d6cbacc8cd7557a5c0a0ac96b90;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git 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');