Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
79925058
Commit
79925058
authored
Oct 29, 2006
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Last minute oopsie. Make sure /files/color is created
parent
b01d96ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/color/color.module
modules/color/color.module
+2
-1
No files found.
modules/color/color.module
View file @
79925058
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment