diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 1b3e34f00a..9bebf55d21 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2070,7 +2070,7 @@ function drupal_common_theme() { ], 'authorize_report' => [ 'variables' => ['messages' => [], 'attributes' => []], - 'includes' => ['core/includes/theme.maintenance.inc'], +// 'includes' => ['core/includes/theme.maintenance.inc'], 'template' => 'authorize-report', ], 'pager' => [ diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index 094780a10e..39b8b5a7d7 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -470,14 +470,12 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path) } if (isset($cache[$hook]['includes'])) { - $result[$hook]['includes'] = $cache[$hook]['includes']; + throw new \Exception(); } // 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; - } + throw new \Exception(); } // If the theme implementation defines a file, then also use the path