summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorwebchick2014-04-17 20:12:22 (GMT)
committerwebchick2014-04-17 20:12:22 (GMT)
commit1521f98cd96a2b30e3e76726a86ca9a85f49986f (patch)
treebd7604418ce6e8602d4f2de38bfd9225fa134a0e /core/authorize.php
parent1efd2ad05f5fc62f6b62a83a7da9f4dcbf9f83cb (diff)
Issue #2218039 by dawehner, sun: Render the maintenance/install page like any other HTML page.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/core/authorize.php b/core/authorize.php
index fa17ef4..982b993 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -21,6 +21,7 @@
*/
use Drupal\Component\Utility\Settings;
+use Drupal\Core\Page\DefaultHtmlPageRenderer;
// Change the directory to the Drupal root.
chdir('..');
@@ -152,13 +153,7 @@ else {
if (!empty($output)) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
- $maintenance_page = array(
- '#page' => array(
- '#title' => $page_title,
- ),
- '#theme' => 'maintenance_page',
- '#content' => $output,
+ print DefaultHtmlPageRenderer::renderPage($output, $page_title, 'maintenance', array(
'#show_messages' => $show_messages,
- );
- print drupal_render($maintenance_page);
+ ));
}