diff options
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index cef043a63..1169b02ef 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -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_PRIVATE)) { + switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) { case FILE_DOWNLOADS_PUBLIC: global $base_url; return $base_url .'/'. variable_get('file_directory_path', 'files') .'/'. str_replace('\\', '/', $path); |