Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
75685d8c
Commit
75685d8c
authored
Jan 13, 2004
by
Kjartan Mannes
Browse files
- Fixing bug
#5091
: Inconsistent download method defaults.
parent
5fa33b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
75685d8c
...
...
@@ -18,7 +18,7 @@ function file_create_url($path) {
if
(
strpos
(
$path
,
variable_get
(
'file_directory_path'
,
'files'
))
!==
false
)
{
$path
=
trim
(
substr
(
$path
,
strlen
(
variable_get
(
'file_directory_path'
,
'files'
))),
'\\/'
);
}
switch
(
variable_get
(
'file_downloads'
,
FILE_DOWNLOADS_P
RIVATE
))
{
switch
(
variable_get
(
'file_downloads'
,
FILE_DOWNLOADS_P
UBLIC
))
{
case
FILE_DOWNLOADS_PUBLIC
:
global
$base_url
;
return
$base_url
.
'/'
.
variable_get
(
'file_directory_path'
,
'files'
)
.
'/'
.
str_replace
(
'\\'
,
'/'
,
$path
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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