summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg.module4
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 11eb463..4f95df3 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 5.x-3.x, xxxx-xx-xx
---------------------------
+#538996 by darktygur: Fixed 404 errors for non-existing theme CSS files.
#509570 by Rob Loach, sun: Added forced detaching of editor upon form submit.
#526644 by Darren Oh: Fixed broken editor theme validation.
#490914 by sun: Fixed JS/CSS not updated after update with caching enabled.
diff --git a/wysiwyg.module b/wysiwyg.module
index 93cbfc6..9bb6fa4 100644
--- a/wysiwyg.module
+++ b/wysiwyg.module
@@ -541,7 +541,9 @@ function wysiwyg_get_css() {
foreach (drupal_add_css() as $media => $css) {
if ($media != 'print') {
foreach ($css['theme'] as $filepath => $preprocess) {
- $files[] = base_path() . $filepath;
+ if (file_exists($filepath)) {
+ $files[] = base_path() . $filepath;
+ }
}
}
}