commit d303738026978e3697733be8824066dc7de2b17e Author: Joel Pittet Date: Tue Jul 21 22:19:38 2015 -0700 fix up a couple things diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 086c242..cfbb818 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1771,7 +1771,7 @@ function drupal_common_theme() { 'variables' => array('items' => NULL, 'active' => NULL, 'variant' => NULL), ), 'authorize_report' => array( - 'variables' => ['messages' => [], 'attributes' => []], + 'variables' => ['messages' => [], 'report' => [], 'attributes' => []], 'includes' => ['core/includes/theme.maintenance.inc'], 'template' => 'authorize-report', ), diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index 7c32129..68aff41 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -112,7 +112,6 @@ function _drupal_maintenance_theme() { */ function template_preprocess_authorize_report(&$variables) { $messages = $variables['messages']; - $variables['report'] = []; if (!empty($messages)) { foreach ($messages as $heading => $logs) { $items = []; diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index d24802d..bb89707 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -442,13 +442,6 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path) $result[$hook]['includes'] = $cache[$hook]['includes']; } - // Load the includes, as they may contain preprocess functions. - if (isset($info['includes'])) { - foreach ($info['includes'] as $include_file) { - include_once $this->root . '/' . $include_file; - } - } - // If the theme implementation defines a file, then also use the path // that it defined. Otherwise use the default path. This allows // system.module to declare theme functions on behalf of core .include diff --git a/core/modules/system/templates/authorize-report.html.twig b/core/modules/system/templates/authorize-report.html.twig index 8e39a2a..95c0809 100644 --- a/core/modules/system/templates/authorize-report.html.twig +++ b/core/modules/system/templates/authorize-report.html.twig @@ -15,7 +15,7 @@ */ #} {% if report %} -
+ {% for messages in report %} {{ messages }} {% endfor %}