Issue #1106160 by tim.plunkett, BarisW: Fixed Color module uses the public file system but doesn't check if it is set.

8.0.x
Alex Pott 2013-10-02 21:15:47 +01:00
parent a5342664b5
commit cef318b5a6
1 changed files with 1 additions and 1 deletions

View File

@ -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);