]> git.mxchange.org Git - mailer.git/blobdiff - modules.php
Fix for missing variable
[mailer.git] / modules.php
index 3b6905a4ec08233841ebb512d81c966289cdd97f..826deb7789bfcc641266452b1c21c83182c3acc2 100644 (file)
@@ -65,7 +65,7 @@ $URL = '';
 $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())) {
@@ -107,11 +107,11 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (
 
                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()));
@@ -128,7 +128,7 @@ if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (
                        break;
        } // END - switch
 } elseif (!ifFatalErrorsDetected()) {
-       // MySQL problems detected
+       // SQL problems detected
        addFatalMessage(__FILE__, __LINE__, '{--MYSQL_ERRORS--}');
 }