Skip to content
Snippets Groups Projects
Commit 79925058 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Last minute oopsie. Make sure /files/color is created

parent b01d96ae
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
......@@ -210,7 +210,8 @@ function color_scheme_form_submit($form_id, $values) {
// Prepare target locations for generated files
$id = $theme .'-'. substr(md5(serialize($palette) . microtime()), 0, 8);
$paths['target'] = variable_get('file_directory_path', 'files') .'/color/'. $id .'/';
$paths['color'] = variable_get('file_directory_path', 'files') .'/color';
$paths['target'] = $paths['color'] .'/'. $id .'/';
foreach ($paths as $path) {
if (!is_dir($path)) {
mkdir($path);
......
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