summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-25 08:58:35 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-25 08:58:35 +0000
commitb86df33b8cd670fd230f2e13cc0a8098de449eb7 (patch)
tree1a39305b10a9ca2e313b0d1b31998679fa1d1554
parent599fe08929b4c582020157ee46327d477f7a47cb (diff)
downloadbrdo-b86df33b8cd670fd230f2e13cc0a8098de449eb7.tar.gz
brdo-b86df33b8cd670fd230f2e13cc0a8098de449eb7.tar.bz2
#97941 by havran. Remove a trailing slash which confuses certain versions of PHP.
-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 58b2c925d..dfdbce101 100644
--- a/modules/color/color.module
+++ b/modules/color/color.module
@@ -211,12 +211,13 @@ function color_scheme_form_submit($form_id, $values) {
// Prepare target locations for generated files
$id = $theme .'-'. substr(md5(serialize($palette) . microtime()), 0, 8);
$paths['color'] = variable_get('file_directory_path', 'files') .'/color';
- $paths['target'] = $paths['color'] .'/'. $id .'/';
+ $paths['target'] = $paths['color'] .'/'. $id;
foreach ($paths as $path) {
if (!is_dir($path)) {
mkdir($path);
}
}
+ $paths['target'] = $paths['target'] .'/';
$paths['id'] = $id;
$paths['source'] = drupal_get_path('theme', $theme) .'/';
$paths['stylesheet'] = $paths['target'] .'style.css';