- switch (getConfig('maintenance'))
- {
- case 'Y': // Maintenance mode is active
- define('ADMIN_MAINTENANCE_MODE', getMessage('ADMIN_MAINTENANCE_MODE_IS_ACTIVE'));
- break;
+ 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