Skip to content
Snippets Groups Projects
Commit 7b91823d authored by catch's avatar catch
Browse files

Issue #2177637 by InternetDevels: Replace theme() with drupal_render() in ajax.inc.

parent 38d4a105
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -362,7 +362,8 @@ function ajax_prepare_response($page_callback_result) {
$commands[] = ajax_command_insert(NULL, $html);
// Add the status messages inside the new content's wrapper element, so that
// on subsequent Ajax requests, it is treated as old content.
$commands[] = ajax_command_prepend(NULL, theme('status_messages'));
$status_messages = array('#theme' => 'status_messages');
$commands[] = ajax_command_prepend(NULL, drupal_render($status_messages));
}
return $commands;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment