summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2011-07-13 16:55:50 (GMT)
committer Joao Ventura2011-07-13 16:55:50 (GMT)
commitd30e9193e1df04a8f6918b06e33641063abff726 (patch)
treee560cb3f55e84bac5d9f7a0114b4a0d6c775a5fd
parent759ab6216ac24458517fb8a33cc698e4a6bdff48 (diff)
Issue #1169148: use CSS group when removing CSS files from the PF version
-rw-r--r--print.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/print.pages.inc b/print.pages.inc
index 16960c7..59a0a82 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]);
}