summaryrefslogtreecommitdiff
path: root/modules
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 /modules
parenta667251eeef24ee5ea65c89537387c8167afc6b1 (diff)
downloadbrdo-d8f91382e802a2a510dfadde398e9d0766c9fb7b.tar.gz
brdo-d8f91382e802a2a510dfadde398e9d0766c9fb7b.tar.bz2
#539022 by dropcube: Use current theme during Batch API processes.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.admin.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index bd7f54eff..b4aa10446 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1928,6 +1928,11 @@ function system_php() {
function system_batch_page() {
require_once DRUPAL_ROOT . '/includes/batch.inc';
$output = _batch_page();
+
+ // Use the same theme that the page that started the batch.
+ $batch = &batch_get();
+ $GLOBALS['custom_theme'] = $batch['theme'];
+
if ($output === FALSE) {
drupal_access_denied();
}