summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-11-14 10:43:20 (GMT)
committerNathaniel Catchpole2014-11-14 10:43:20 (GMT)
commit488116d759559f6e784ace5786f8b1b0b92231f9 (patch)
tree04d2997f6c4ea5021f5cc3e60f438a67bd38b9e1 /core/authorize.php
parent9f035188ea6ec6701131b979cc806ff6d180d8be (diff)
Issue #2352155 by Wim Leers: Remove HtmlFragment/HtmlPage.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 4b0f249..22bede6 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -25,7 +25,6 @@ use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Drupal\Core\Site\Settings;
-use Drupal\Core\Page\DefaultHtmlPageRenderer;
// Change the directory to the Drupal root.
chdir('..');
@@ -150,7 +149,7 @@ else {
if (!empty($output)) {
$response->headers->set('Content-Type', 'text/html; charset=utf-8');
- $response->setContent(DefaultHtmlPageRenderer::renderPage($output, $page_title, 'maintenance', array(
+ $response->setContent(\Drupal::service('bare_html_page_renderer')->renderMaintenancePage($output, $page_title, array(
'#show_messages' => $show_messages,
)));
$response->send();