diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-05-14 18:15:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-05-14 18:15:23 +0000 |
commit | 33f4134fac5ab47ab7130c8aa18d465aa247a283 (patch) | |
tree | 7edbe16bda17d44117d0cce673c96d4778e3d794 | |
parent | 3a02ee64b2fa106bb4d7559b6a6836acc3f9a358 (diff) | |
download | brdo-33f4134fac5ab47ab7130c8aa18d465aa247a283.tar.gz brdo-33f4134fac5ab47ab7130c8aa18d465aa247a283.tar.bz2 |
- Patch #22723 by ejort: 'from' to 'FROM'.
-rw-r--r-- | modules/upload.module | 2 | ||||
-rw-r--r-- | modules/upload/upload.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload.module b/modules/upload.module index 1370c4260..5302d5ac3 100644 --- a/modules/upload.module +++ b/modules/upload.module @@ -111,7 +111,7 @@ function upload_download() { function upload_file_download($file) { if (user_access('view uploaded files')) { $file = file_create_path($file); - $result = db_query(db_rewrite_sql("SELECT f.nid, f.* from {files} f WHERE filepath = '%s'", 'f'), $file); + $result = db_query(db_rewrite_sql("SELECT f.nid, f.* FROM {files} f WHERE filepath = '%s'", 'f'), $file); if ($file = db_fetch_object($result)) { $name = mime_header_encode($file->filename); // Serve images and text inline for the browser to display rather than download. diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 1370c4260..5302d5ac3 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -111,7 +111,7 @@ function upload_download() { function upload_file_download($file) { if (user_access('view uploaded files')) { $file = file_create_path($file); - $result = db_query(db_rewrite_sql("SELECT f.nid, f.* from {files} f WHERE filepath = '%s'", 'f'), $file); + $result = db_query(db_rewrite_sql("SELECT f.nid, f.* FROM {files} f WHERE filepath = '%s'", 'f'), $file); if ($file = db_fetch_object($result)) { $name = mime_header_encode($file->filename); // Serve images and text inline for the browser to display rather than download. |