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

8.0.x
Nathaniel Catchpole 2014-01-31 11:18:24 +00:00
parent 38d4a10545
commit 7b91823d91
1 changed files with 2 additions and 1 deletions

View File

@ -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;