From d8f91382e802a2a510dfadde398e9d0766c9fb7b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 11 Sep 2009 04:09:26 +0000 Subject: #539022 by dropcube: Use current theme during Batch API processes. --- modules/system/system.admin.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') 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(); } -- cgit v1.2.3