diff --git a/includes/menu.inc b/includes/menu.inc index 2bb593bcae923088f21bff3e4e2f18ac8bbfb342..fb20e2fe3045aeec6acae9801710d694849b7e8b 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2354,8 +2354,11 @@ function _menu_site_is_offline() { // Check if the user has administration privileges. if (user_access('administer site configuration')) { // Ensure that the off-line message is displayed only once [allowing for - // page redirects]. - drupal_set_message(t('Operating in off-line mode.'), 'status', FALSE); + // page redirects], and specifically suppress its display on the site + // maintenance page. + if (drupal_get_normal_path($_GET['q']) != 'admin/settings/site-maintenance') { + drupal_set_message(t('Operating in off-line mode.'), 'status', FALSE); + } } else { // Anonymous users get a FALSE at the login prompt, TRUE otherwise.