Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / modules / admin / what-maintenance.php
index 491e6107896e04d3c012439d386c054142e1ba07..58a8429269590bbbdc70ddf45555c8998d80a0f7 100644 (file)
@@ -45,7 +45,7 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
        // De- or activate maintenance mode
-       switch (getConfig('maintenance')) {
+       switch (getMaintenance()) {
                case 'Y':
                        $target_mode = 'N';
                        $message = '{--ADMIN_MAINTENANCE_DEACTIVATED--}';
@@ -63,7 +63,7 @@ if (isFormSent()) {
        // Load template
        loadTemplate('admin_settings_saved', false, $message);
 } else {
-       switch (getConfig('maintenance')) {
+       switch (getMaintenance()) {
                case 'Y': // Maintenance mode is active
                        $message = '{--ADMIN_MAINTENANCE_MODE_IS_ACTIVE--}';
                        break;