From 6642fbc7001c728e218170fd286e6b8a24eef24f Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Wed, 16 Apr 2014 17:44:34 -0400 Subject: Drupal 7.27 --- modules/file/file.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/file') 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); } -- cgit v1.2.3