summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-10 07:35:40 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-10 07:35:40 +0000
commitccaaf69da54680e910689f131625338cbf844941 (patch)
treec2fcf08686f3c666999e2da40d1d2b25abf813c4 /includes
parent98f97e184cbf327843378039470417a601de2582 (diff)
downloadbrdo-ccaaf69da54680e910689f131625338cbf844941.tar.gz
brdo-ccaaf69da54680e910689f131625338cbf844941.tar.bz2
- Patch #184926 by Rob and brightloudnoise: improved usability of status message when site is offline.
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 44de89592..e40579fd6 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -2353,8 +2353,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.