summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-23 09:43:25 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-23 09:43:25 +0000
commit3bfb600ae54f2428aec20d9a0802f4e74471044f (patch)
tree56f6b5c338318a1db6876bca95611264d1c4bd6b /modules
parentc1b5c774a35df1952148d6550fce6e77f81c2bf6 (diff)
downloadbrdo-3bfb600ae54f2428aec20d9a0802f4e74471044f.tar.gz
brdo-3bfb600ae54f2428aec20d9a0802f4e74471044f.tar.bz2
#213172 by skiquel: let color module run properly without a base image
Diffstat (limited to 'modules')
-rw-r--r--modules/color/color.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/color/color.module b/modules/color/color.module
index 9bb7fc069..5fa207014 100644
--- a/modules/color/color.module
+++ b/modules/color/color.module
@@ -317,8 +317,10 @@ function color_scheme_form_submit($form, &$form_state) {
$paths['files'][] = $paths['target'] . $base;
}
- // Render new images.
- _color_render_images($theme, $info, $paths, $palette);
+ // Render new images, if image provided.
+ if ($info['base_image']) {
+ _color_render_images($theme, $info, $paths, $palette);
+ }
// Rewrite theme stylesheets.
$css = array();