diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
commit | e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7 (patch) | |
tree | 93e4aa08fda69ea8bb2ad31c9af38124c2668a2e /modules/upload/upload.module | |
parent | 1806af909cc912e3ae688577b52a4edbcaf25678 (diff) | |
download | brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.gz brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.bz2 |
#308434 by drewish, dopry, quicksketch, aaron, jhedstrom, and friends: Massive file.inc cleanup aaaaaand... tests! Yay! :D
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r-- | modules/upload/upload.module | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index bb71adb00..747bacb85 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -420,13 +420,12 @@ function upload_save(&$node) { // Create a new revision, or associate a new file needed. if (!empty($node->old_vid) || isset($_SESSION['upload_files'][$fid])) { db_query("INSERT INTO {upload} (fid, nid, vid, list, description, weight) VALUES (%d, %d, %d, %d, '%s', %d)", $file->fid, $node->nid, $node->vid, $file->list, $file->description, $file->weight); - file_set_status($file, FILE_STATUS_PERMANENT); } // Update existing revision. else { db_query("UPDATE {upload} SET list = %d, description = '%s', weight = %d WHERE fid = %d AND vid = %d", $file->list, $file->description, $file->weight, $file->fid, $node->vid); - file_set_status($file, FILE_STATUS_PERMANENT); } + file_set_status($file, FILE_STATUS_PERMANENT); } // Empty the session storage after save. We use this variable to track files // that haven't been related to the node yet. |