diff --git a/wysiwyg.module b/wysiwyg.module index aba3920..98c9264 100644 --- a/wysiwyg.module +++ b/wysiwyg.module @@ -654,13 +654,8 @@ function wysiwyg_get_css() { $files = array(); foreach (drupal_add_css() as $filepath => $info) { - if ($info['group'] >= CSS_THEME && $info['media'] != 'print') { - if ($info['type'] == 'external') { - $files[] = $filepath; - } - elseif (file_exists($filepath)) { - $files[] = base_path() . $filepath; - } + if ($info['group'] >= CSS_THEME && $info['type'] != 'inline' && $info['media'] != 'print') { + $files[] = file_create_url($filepath); } } return $files;