Commit d30e9193 authored by jcnventura's avatar jcnventura

Issue #1169148: use CSS group when removing CSS files from the PF version

parent 759ab621
......@@ -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]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment