$moduleState = 'failed';
// Is the maintenance mode active or goes all well?
-if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (!isAdmin()) && (getModule() != 'admin')) {
+if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin()) && (getModule() != 'admin')) {
// Maintain mode is active and you are no admin
addFatalMessage(__FILE__, __LINE__, '{--MAILER_DOWN_FOR_MAINTENANCE--}');
} elseif ((SQL_IS_LINK_UP()) && (!ifFatalErrorsDetected())) {
case 'locked':
// Set HTTP status
- setHttpStatus('403');
+ setHttpStatus('403 FORBIDDEN');
if (!isIncludeReadable($GLOBALS['module_inc'])) {
- // Set HTTP status
- setHttpStatus('404');
+ // Set HTTP status again
+ setHttpStatus('404 NOT FOUND');
// Module does addionally not exists
addFatalMessage(__FILE__, __LINE__, getMaskedMessage('MODULE_REGISTRY_404', getModule()));
break;
} // END - switch
} elseif (!ifFatalErrorsDetected()) {
- // MySQL problems detected
+ // SQL problems detected
addFatalMessage(__FILE__, __LINE__, '{--MYSQL_ERRORS--}');
}