summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-11 04:09:26 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-11 04:09:26 +0000
commitd8f91382e802a2a510dfadde398e9d0766c9fb7b (patch)
treebe2c2a72df71dc0dc4557633978d820f58bf2db1 /includes/form.inc
parenta667251eeef24ee5ea65c89537387c8167afc6b1 (diff)
downloadbrdo-d8f91382e802a2a510dfadde398e9d0766c9fb7b.tar.gz
brdo-d8f91382e802a2a510dfadde398e9d0766c9fb7b.tar.bz2
#539022 by dropcube: Use current theme during Batch API processes.
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/form.inc b/includes/form.inc
index a80460477..83e37c385 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -2890,6 +2890,8 @@ function batch_set($batch_definition) {
function batch_process($redirect = NULL, $url = NULL) {
$batch =& batch_get();
+ drupal_theme_initialize();
+
if (isset($batch)) {
// Add process information
$url = isset($url) ? $url : 'batch';
@@ -2899,6 +2901,7 @@ function batch_process($redirect = NULL, $url = NULL) {
'url' => isset($url) ? $url : 'batch',
'source_page' => $_GET['q'],
'redirect' => $redirect,
+ 'theme' => $GLOBALS['theme_key'],
);
$batch += $process_info;