From 8847f4c9a2edcd2f555d6a47b5037c88c671cc3c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 17 Feb 2010 20:45:36 +0000 Subject: #717148 by adrian: Fixed tons of duplication of information during update.php batch. --- includes/update.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/update.inc b/includes/update.inc index 4908bfdb8..d057eb88f 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -708,7 +708,7 @@ function update_do_one($module, $number, $dependency_map, &$context) { // If this update was aborted in a previous step, or has a dependency that // was aborted in a previous step, go no further. - if (!empty($context['results']['#abort']) && array_intersect($context['results']['#abort'], array_merge($dependency_map[$function], array($function)))) { + if (!empty($context['results']['#abort']) && array_intersect($context['results']['#abort'], array_merge($dependency_map, array($function)))) { return; } @@ -821,7 +821,8 @@ function update_batch($start, $redirect = NULL, $url = NULL, $batch = array(), $ unset($start[$update['module']]); } // Add this update function to the batch. - $operations[] = array('update_do_one', array($update['module'], $update['number'], $dependency_map)); + $function = $update['module'] . '_update_' . $update['number']; + $operations[] = array('update_do_one', array($update['module'], $update['number'], $dependency_map[$function])); } } $batch['operations'] = $operations; -- cgit v1.2.3