diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-29 22:02:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-29 22:02:37 +0000 |
commit | 993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb (patch) | |
tree | 3a0999b14fee17844a3318ee2f564191a83e31f3 /modules/upload | |
parent | e6d36892abca87d1c668d6294106a154c219cee4 (diff) | |
download | brdo-993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb.tar.gz brdo-993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb.tar.bz2 |
- Patch #16111 by chx: generalized node_rewrite_query to db_rewrite_query.
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 04cf1382c..1a3348e65 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -90,7 +90,7 @@ function upload_download() { function upload_file_download($file) { if (user_access('view uploaded files')) { $file = file_create_path($file); - $result = db_query(node_rewrite_sql("SELECT f.nid, * from {files} f WHERE filepath = '%s", 'f'), $file); + $result = db_query(db_rewrite_sql("SELECT f.nid, * 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. |