summaryrefslogtreecommitdiff
path: root/includes/batch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/batch.inc')
-rw-r--r--includes/batch.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index 1efeb6470..2f0d26055 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -215,7 +215,14 @@ function _batch_progress_page_nojs() {
$batch['url_options']['query']['op'] = $new_op;
$url = url($batch['url'], $batch['url_options']);
- drupal_add_html_head('<meta http-equiv="Refresh" content="0; URL=' . $url . '">');
+ $element = array(
+ '#tag' => 'meta',
+ '#attributes' => array(
+ 'http-equiv' => 'Refresh',
+ 'content' => '0; URL=' . $url,
+ ),
+ );
+ drupal_add_html_head($element, 'batch_progress_meta_refresh');
return theme('progress_bar', array('percent' => $percentage, 'message' => $message));
}