diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-23 09:43:25 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-23 09:43:25 +0000 |
commit | 3bfb600ae54f2428aec20d9a0802f4e74471044f (patch) | |
tree | 56f6b5c338318a1db6876bca95611264d1c4bd6b | |
parent | c1b5c774a35df1952148d6550fce6e77f81c2bf6 (diff) | |
download | brdo-3bfb600ae54f2428aec20d9a0802f4e74471044f.tar.gz brdo-3bfb600ae54f2428aec20d9a0802f4e74471044f.tar.bz2 |
#213172 by skiquel: let color module run properly without a base image
-rw-r--r-- | modules/color/color.module | 6 |
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(); |