Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
7b91823d
Commit
7b91823d
authored
Jan 31, 2014
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2177637
by InternetDevels: Replace theme() with drupal_render() in ajax.inc.
parent
38d4a105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
core/includes/ajax.inc
core/includes/ajax.inc
+2
-1
No files found.
core/includes/ajax.inc
View file @
7b91823d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment