summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorwebchick2014-04-04 04:41:54 (GMT)
committerwebchick2014-04-04 04:41:54 (GMT)
commit4f4b457d6b4ccba10c6faaa618a2f16b61f253df (patch)
treedac99df80168bff1f64e417e7add1aa585c8c0a7 /core/authorize.php
parent3a27db99bb9d19a5368f959349aa4a19d5725b37 (diff)
Revert "Issue #2218039 by sun, dawehner: Render the maintenance/install page like any other HTML page."
Broke update.php. This reverts commit 10b038906621c45e7aa638733d0994cad3ebab6d.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 086802e..97fbe24 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -21,7 +21,6 @@
*/
use Drupal\Component\Utility\Settings;
-use Drupal\Core\Page\DefaultHtmlPageRenderer;
// Change the directory to the Drupal root.
chdir('..');
@@ -156,7 +155,13 @@ else {
if (!empty($output)) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
- print DefaultHtmlPageRenderer::renderPage($output, $page_title, 'maintenance', array(
+ $maintenance_page = array(
+ '#page' => array(
+ '#title' => $page_title,
+ ),
+ '#theme' => 'maintenance_page',
+ '#content' => $output,
'#show_messages' => $show_messages,
- ));
+ );
+ print drupal_render($maintenance_page);
}