Issue #2095329 by Wim Leers: Remove drupal_add_css() from batch system.

8.0.x
webchick 2013-12-03 22:44:16 -08:00
parent a68a2e239b
commit 5868f29f19
1 changed files with 3 additions and 1 deletions

View File

@ -47,13 +47,15 @@ function _batch_page(Request $request) {
drupal_register_shutdown_function('_batch_shutdown');
// Add batch-specific CSS.
$attached = array('#attached' => array('css' => array()));
foreach ($batch['sets'] as $batch_set) {
if (isset($batch_set['css'])) {
foreach ($batch_set['css'] as $css) {
drupal_add_css($css);
$attached['#attached']['css'][$css] = array();
}
}
}
drupal_render($attached);
$op = $request->get('op', '');
$output = NULL;