Skip to content
Snippets Groups Projects
Commit cef318b5 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1106160 by tim.plunkett, BarisW: Fixed Color module uses the public...

Issue #1106160 by tim.plunkett, BarisW: Fixed Color module uses the public file system but doesn't check if it is set.
parent a5342664
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
......@@ -336,7 +336,7 @@ function color_scheme_form_submit($form, &$form_state) {
// Prepare target locations for generated files.
$id = $theme . '-' . substr(hash('sha256', serialize($palette) . microtime()), 0, 8);
$paths['color'] = 'public://color';
$paths['color'] = file_default_scheme() . '://color';
$paths['target'] = $paths['color'] . '/' . $id;
foreach ($paths as $path) {
file_prepare_directory($path, FILE_CREATE_DIRECTORY);
......
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