diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 9d7a725..63c9c3e 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1307,7 +1307,11 @@ function template_preprocess_html(&$variables) { */ function template_preprocess_page(&$variables) { $language_interface = \Drupal::languageManager()->getCurrentLanguage(); - $site_config = \Drupal::config('system.site'); + + // $site_config only needed on maintenance and install paths. + if (defined('MAINTENANCE_MODE')) { + $site_config = \Drupal::config('system.site'); + } // Move some variables to the top level for themer convenience and template cleanliness. $variables['title'] = $variables['page']['#title'];