diff --git a/wysiwyg.module b/wysiwyg.module index 11aa23b..4c79db1 100644 --- a/wysiwyg.module +++ b/wysiwyg.module @@ -641,7 +641,12 @@ function wysiwyg_get_css() { $files[] = $filepath; } elseif (file_exists($filepath)) { - $files[] = base_path() . $filepath; + if (file_uri_scheme($filepath) == 'public') { + $files[] = file_create_url($filepath); + } + else { + $files[] = base_path() . $filepath; + } } } }