summaryrefslogtreecommitdiff
path: root/includes/ajax.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-01 16:38:17 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-11-01 16:38:17 -0400
commitd5945c1c062bf8ef67c03cfb8681b312c59312e3 (patch)
treea75982c5929cdf1538f6cec84a76e4fefbbc06a5 /includes/ajax.inc
parent62c952c6e4cad7ac18ee8aea6791f4f0d1117231 (diff)
downloadbrdo-d5945c1c062bf8ef67c03cfb8681b312c59312e3.tar.gz
brdo-d5945c1c062bf8ef67c03cfb8681b312c59312e3.tar.bz2
Issue #208611 by p.brouwers, mgifford, tstoeckler, DougKress, Jody Lynn, ksenzee | walkah: Made the Ajax system use drupal_array_merge_deep_array() to stop JavaScript settings from being added twice.
Diffstat (limited to 'includes/ajax.inc')
-rw-r--r--includes/ajax.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/ajax.inc b/includes/ajax.inc
index 8446bf891..31067c3e0 100644
--- a/includes/ajax.inc
+++ b/includes/ajax.inc
@@ -292,7 +292,7 @@ function ajax_render($commands = array()) {
$scripts = drupal_add_js();
if (!empty($scripts['settings'])) {
$settings = $scripts['settings'];
- array_unshift($commands, ajax_command_settings(call_user_func_array('array_merge_recursive', $settings['data']), TRUE));
+ array_unshift($commands, ajax_command_settings(drupal_array_merge_deep_array($settings['data']), TRUE));
}
// Allow modules to alter any Ajax response.