summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-10-24 14:51:28 (GMT)
committerNathaniel Catchpole2014-10-24 14:51:28 (GMT)
commit2d3266e61fd336d2de2107e84f802cc0c2ca2aa8 (patch)
tree9da67bda9a3e499c4e811c1767c3032e9dc2cdab /core/authorize.php
parentabcfdc177f866862f5137c1600fc330ce11c21e1 (diff)
Issue #2361681 by Wim Leers: drupal_render(): invert second argument ($is_recursive_call -> $is_root_call) => more strict, better DX/TX.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/authorize.php b/core/authorize.php
index a676ee1..4b0f249 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -104,7 +104,7 @@ if (authorize_access_allowed()) {
'#theme' => 'authorize_report',
'#messages' => $results['messages'],
);
- $output = drupal_render($authorize_report);
+ $output = drupal_render_root($authorize_report);
$links = array();
if (is_array($results['tasks'])) {
@@ -122,7 +122,7 @@ if (authorize_access_allowed()) {
'#items' => $links,
'#title' => t('Next steps'),
);
- $output .= drupal_render($item_list);
+ $output .= drupal_render_root($item_list);
}
// If a batch is running, let it run.
elseif ($request->query->has('batch')) {
@@ -135,7 +135,7 @@ if (authorize_access_allowed()) {
elseif (!$batch = batch_get()) {
// We have a batch to process, show the filetransfer form.
$elements = \Drupal::formBuilder()->getForm('Drupal\Core\FileTransfer\Form\FileTransferAuthorizeForm');
- $output = drupal_render($elements);
+ $output = drupal_render_root($elements);
}
}
// We defer the display of messages until all operations are done.