Commit cef318b5 authored by alexpott's avatar alexpott

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
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment