Skip to content
Snippets Groups Projects
Commit 3bfb600a authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#213172 by skiquel: let color module run properly without a base image

parent c1b5c774
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -317,8 +317,10 @@ function color_scheme_form_submit($form, &$form_state) { ...@@ -317,8 +317,10 @@ function color_scheme_form_submit($form, &$form_state) {
$paths['files'][] = $paths['target'] . $base; $paths['files'][] = $paths['target'] . $base;
} }
// Render new images. // Render new images, if image provided.
_color_render_images($theme, $info, $paths, $palette); if ($info['base_image']) {
_color_render_images($theme, $info, $paths, $palette);
}
// Rewrite theme stylesheets. // Rewrite theme stylesheets.
$css = array(); $css = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment