summaryrefslogtreecommitdiff
path: root/modules/color
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-10-29 13:34:10 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-10-29 13:34:10 +0000
commit7992505881073aff0bbdce49301eca2c5dd3fc1b (patch)
treeb95339c7ad9b36dcbf62aae650503d609df68847 /modules/color
parentb01d96aed5004b6b07cf0e9437eb0bd95b8a70da (diff)
downloadbrdo-7992505881073aff0bbdce49301eca2c5dd3fc1b.tar.gz
brdo-7992505881073aff0bbdce49301eca2c5dd3fc1b.tar.bz2
- Last minute oopsie. Make sure /files/color is created
Diffstat (limited to 'modules/color')
-rw-r--r--modules/color/color.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/color/color.module b/modules/color/color.module
index 98b6e337d..5b3b3ce71 100644
--- a/modules/color/color.module
+++ b/modules/color/color.module
@@ -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);