- LOAD_TEMPLATE("admin_settings_saved", false, $out);
-}
- else
-{
- switch ($CONFIG['maintenance'])
- {
- case 'Y': // Maintenance mode is active
- define('ADMIN_MAINTENANCE_MODE', ADMIN_MAINTENANCE_MODE_IS_ACTIVE);
- break;
+ loadTemplate('admin_settings_saved', false, $message);
+} else {
+ switch (getMaintenance()) {
+ case 'Y': // Maintenance mode is active
+ $message = '{--ADMIN_MAINTENANCE_MODE_IS_ACTIVE--}';
+ break;
+
+ case 'N': // Maintenance mode is inactive
+ $message = '{--ADMIN_MAINTENANCE_MODE_IS_INACTIVE--}';
+ break;
+ } // END - switch