diff --git a/print.pages.inc b/print.pages.inc index 16960c7bdb705008c2bfc378f969b9974c7e69d5..59a0a824fdc33faf1fc8651df0b6417034facb01 100644 --- a/print.pages.inc +++ b/print.pages.inc @@ -185,8 +185,8 @@ function _print_var_generator($node, $message = NULL, $cid = NULL) { drupal_add_css(drupal_get_path('module', 'print') . '/css/print.css'); } $drupal_css = drupal_add_css(); - foreach ($drupal_css as $key => $types) { - if (strpos($key, 'themes') !== FALSE) { + foreach ($drupal_css as $key => $css_file) { + if ($css_file['group'] == CSS_THEME) { // Unset the theme's CSS unset($drupal_css[$key]); }