$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())) {
break;
} // END - switch
} elseif (!ifFatalErrorsDetected()) {
- // MySQL problems detected
+ // SQL problems detected
addFatalMessage(__FILE__, __LINE__, '{--MYSQL_ERRORS--}');
}