Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b86df33b
Commit
b86df33b
authored
Nov 25, 2006
by
drumm
Browse files
#97941
by havran. Remove a trailing slash which confuses certain versions of PHP.
parent
599fe089
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/color/color.module
View file @
b86df33b
...
...
@@ -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'
;
...
...
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