From 85e6a0cd3a174efa256d58785d75d3f1252720a7 Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Fri, 6 Apr 2012 16:10:09 -0500 Subject: [PATCH] Remove unnecessary variable. --- .../Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php index 04dbc7b897a..2befe920620 100644 --- a/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php @@ -35,7 +35,7 @@ class MaintenanceModeSubscriber implements EventSubscriberInterface { drupal_alter('menu_site_status', $status, $read_only_path); // Only continue if the site is online. - if ($page_callback_result != MENU_SITE_ONLINE) { + if ($status != MENU_SITE_ONLINE) { // Deliver the 503 page. drupal_maintenance_theme(); drupal_set_title(t('Site under maintenance'));