X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-maintenance.php;h=e0d4f530cfdee9179f13a0e9782d16e18ab46108;hb=64ad7e20acdc9b16363e25cecc3e7f2a0f435a37;hp=d1abaa24d8b3528a6a3d9a937df33e0ef884ccd2;hpb=5ecdfd5b5bff5ab4de8613d303a2839624304b99;p=mailer.git diff --git a/inc/modules/admin/what-maintenance.php b/inc/modules/admin/what-maintenance.php index d1abaa24d8..e0d4f530cf 100644 --- a/inc/modules/admin/what-maintenance.php +++ b/inc/modules/admin/what-maintenance.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -43,11 +41,11 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isFormSent()) { // De- or activate maintenance mode - switch (getConfig('maintenance')) { + switch (getMaintenance()) { case 'Y': $target_mode = 'N'; $message = '{--ADMIN_MAINTENANCE_DEACTIVATED--}'; @@ -57,7 +55,7 @@ if (isFormSent()) { $target_mode = 'Y'; $message = '{--ADMIN_MAINTENANCE_ACTIVATED--}'; break; - } + } // END - switch // Update config updateConfiguration('maintenance', $target_mode); @@ -65,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; @@ -73,7 +71,7 @@ if (isFormSent()) { case 'N': // Maintenance mode is inactive $message = '{--ADMIN_MAINTENANCE_MODE_IS_INACTIVE--}'; break; - } + } // END - switch // Display form loadTemplate('admin_maintenance_form', false, $message);