Commit 1fe6c7ad authored by catch's avatar catch
Browse files

Issue #2007124 by pplantinga, anirudha_3083, martin107, InternetDevels:...

Issue #2007124 by pplantinga, anirudha_3083, martin107, InternetDevels: Replace theme() with drupal_render() in authorize.php.
parent 59c4e229
......@@ -119,7 +119,11 @@ function authorize_access_allowed() {
drupal_set_message($results['page_message']['message'], $results['page_message']['type']);
}
$output = theme('authorize_report', array('messages' => $results['messages']));
$authorize_report = array(
'#theme' => 'authorize_report',
'#messages' => $results['messages'],
);
$output = drupal_render($authorize_report);
$links = array();
if (is_array($results['tasks'])) {
......@@ -132,7 +136,12 @@ function authorize_access_allowed() {
));
}
$output .= theme('item_list', array('items' => $links, 'title' => t('Next steps')));
$item_list = array(
'#theme' => 'item_list',
'#items' => $links,
'#title' => t('Next steps'),
);
$output .= drupal_render($item_list);
}
// If a batch is running, let it run.
elseif ($request->query->has('batch')) {
......@@ -157,5 +166,10 @@ function authorize_access_allowed() {
if (!empty($output)) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('maintenance_page', array('content' => $output, 'show_messages' => $show_messages));
$maintenance_page = array(
'#theme' => 'maintenance_page',
'#content' => $output,
'#show_messages' => $show_messages,
);
print drupal_render($maintenance_page);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment