Issue #1106160 by tim.plunkett, BarisW: Fixed Color module uses the public file system but doesn't check if it is set.
parent
a5342664b5
commit
cef318b5a6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue