summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-30 17:45:32 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-30 17:45:32 +0000
commit27ccbf1f6ffcd071a8a7f62e99e122c4a1c4dd35 (patch)
tree9590a0cb240979ee7f2bca52931e51c0e37a6a7a /modules
parentb3cb4f0d9b783d8ba52747931f5a6b3587a6a5c7 (diff)
downloadbrdo-27ccbf1f6ffcd071a8a7f62e99e122c4a1c4dd35.tar.gz
brdo-27ccbf1f6ffcd071a8a7f62e99e122c4a1c4dd35.tar.bz2
#55520, improved docs, patch by dopry
Diffstat (limited to 'modules')
-rw-r--r--modules/upload.module3
-rw-r--r--modules/upload/upload.module3
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/upload.module b/modules/upload.module
index 75fc07fa2..46d582400 100644
--- a/modules/upload.module
+++ b/modules/upload.module
@@ -80,8 +80,7 @@ function upload_menu($may_cache) {
foreach ($_SESSION['file_previews'] as $fid => $file) {
$filename = file_create_filename($file->filename, file_create_path());
if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE) {
- // strip file_directory_path() from filepath
- // to hide relative paths in url. see file_create_url
+ // strip file_directory_path() from filename. @see file_create_url
if (strpos($filename, file_directory_path()) !== false) {
$filename = trim(substr($filename, strlen(file_directory_path())), '\\/');
}
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 75fc07fa2..46d582400 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -80,8 +80,7 @@ function upload_menu($may_cache) {
foreach ($_SESSION['file_previews'] as $fid => $file) {
$filename = file_create_filename($file->filename, file_create_path());
if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE) {
- // strip file_directory_path() from filepath
- // to hide relative paths in url. see file_create_url
+ // strip file_directory_path() from filename. @see file_create_url
if (strpos($filename, file_directory_path()) !== false) {
$filename = trim(substr($filename, strlen(file_directory_path())), '\\/');
}