commit 781279dd89eefbb187c7f1bb1ae3a5eda563b9e3 Author: Joel Pittet Date: Tue Nov 18 08:50:39 2014 -0800 add theme property diff --git a/core/authorize.php b/core/authorize.php index 22bede6..266d932 100644 --- a/core/authorize.php +++ b/core/authorize.php @@ -149,7 +149,7 @@ function authorize_access_allowed() { if (!empty($output)) { $response->headers->set('Content-Type', 'text/html; charset=utf-8'); - $response->setContent(\Drupal::service('bare_html_page_renderer')->renderMaintenancePage($output, $page_title, array( + $response->setContent(\Drupal::service('bare_html_page_renderer')->renderBarePage(['#markup' => $output], $page_title, 'page', array( '#show_messages' => $show_messages, ))); $response->send(); diff --git a/core/includes/batch.inc b/core/includes/batch.inc index 59e1529..088889d 100644 --- a/core/includes/batch.inc +++ b/core/includes/batch.inc @@ -135,7 +135,7 @@ function _batch_progress_page() { // additional HTML output by PHP shows up inside the page rather than below // it. While this causes invalid HTML, the same would be true if we didn't, // as content is not allowed to appear after anyway. - $fallback = \Drupal::service('bare_html_page_renderer')->renderMaintenancePage($fallback, $current_set['title'], array( + $fallback = \Drupal::service('bare_html_page_renderer')->renderBarePage(['#markup' => $fallback], $current_set['title'], 'maintenance_page', array( '#show_messages' => FALSE, )); list($fallback) = explode('', $fallback); diff --git a/core/includes/errors.inc b/core/includes/errors.inc index a3c3564..fbdb68c 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -235,7 +235,7 @@ function _drupal_log_error($error, $fatal = FALSE) { install_display_output($output, $GLOBALS['install_state']); } else { - $output = \Drupal::service('bare_html_page_renderer')->renderMaintenancePage($message, 'Error'); + $output = \Drupal::service('bare_html_page_renderer')->renderBarePage(['#markup' => $message], 'Error', 'maintenance_page'); } $response = new Response($output, 500);