From 7b91823d91e4bd41758cae04fc9b8f44e484be4c Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Fri, 31 Jan 2014 11:18:24 +0000 Subject: [PATCH] Issue #2177637 by InternetDevels: Replace theme() with drupal_render() in ajax.inc. --- core/includes/ajax.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc index de6f5d033e20..c8c5cdb34394 100644 --- a/core/includes/ajax.inc +++ b/core/includes/ajax.inc @@ -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;