summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-07-28 15:06:12 -0400
committerwebchick <webchick@24967.no-reply.drupal.org>2011-07-28 15:06:12 -0400
commit43b125e883d188ae5181d0700cbae45670adef64 (patch)
tree18820b93d0640c7588a7e0c1735f6b99be58f850 /modules/system
parentb3e2b2ad52d6ef28996626bfba92fbac7d29a2dc (diff)
downloadbrdo-43b125e883d188ae5181d0700cbae45670adef64.tar.gz
brdo-43b125e883d188ae5181d0700cbae45670adef64.tar.bz2
Issue #936686 by David_Rothstein, Einewton: Fixed 'Installation failed' errors when installing modules from Update Manager w/ Overlay.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module9
1 files changed, 8 insertions, 1 deletions
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
@@ -1790,6 +1790,13 @@ function system_authorized_get_url(array $options = array()) {
}
/**
+ * 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.
*
* @see system_authorized_init()
@@ -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);
}