summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-04-16 17:44:34 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-04-16 17:44:34 -0400
commit6642fbc7001c728e218170fd286e6b8a24eef24f (patch)
treef61414ed711b211cceaf4a299de85a328d620f11 /modules/file
parentdc791ec5839b52c7616bf66993122aa9a1336384 (diff)
downloadbrdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.gz
brdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.bz2
Drupal 7.27
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/file.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 3d351fa2c..5a635fd75 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -246,7 +246,7 @@ function file_ajax_upload() {
return array('#type' => 'ajax', '#commands' => $commands);
}
- list($form, $form_state) = ajax_get_form();
+ list($form, $form_state, $form_id, $form_build_id, $commands) = ajax_get_form();
if (!$form) {
// Invalid form_build_id.
@@ -284,7 +284,6 @@ function file_ajax_upload() {
$js = drupal_add_js();
$settings = call_user_func_array('array_merge_recursive', $js['settings']['data']);
- $commands = array();
$commands[] = ajax_command_replace(NULL, $output, $settings);
return array('#type' => 'ajax', '#commands' => $commands);
}