From 43b125e883d188ae5181d0700cbae45670adef64 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 28 Jul 2011 15:06:12 -0400 Subject: Issue #936686 by David_Rothstein, Einewton: Fixed 'Installation failed' errors when installing modules from Update Manager w/ Overlay. --- modules/system/system.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index c5b440346..754177ca6 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1789,6 +1789,13 @@ function system_authorized_get_url(array $options = array()) { return url($base_url . '/authorize.php', $options); } +/** + * Returns the URL for the authorize.php script when it is processing a batch. + */ +function system_authorized_batch_processing_url() { + return system_authorized_get_url(array('query' => array('batch' => '1'))); +} + /** * Setup and invoke an operation using authorize.php. * @@ -1806,7 +1813,7 @@ function system_authorized_run($callback, $file, $arguments = array(), $page_tit */ function system_authorized_batch_process() { $finish_url = system_authorized_get_url(); - $process_url = system_authorized_get_url(array('query' => array('batch' => '1'))); + $process_url = system_authorized_batch_processing_url(); batch_process($finish_url, $process_url); } -- cgit v1.2.3