diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-22 12:46:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-22 12:46:07 +0000 |
commit | 938c7c07a38129deeb4eabe805e3ae80db8ccead (patch) | |
tree | 69e6b62e0aedec33265d1b3c0a50fcd154062dcd /modules/upload | |
parent | 4488b2481e327cbcbbbb9dfc439e8557a8942f8c (diff) | |
download | brdo-938c7c07a38129deeb4eabe805e3ae80db8ccead.tar.gz brdo-938c7c07a38129deeb4eabe805e3ae80db8ccead.tar.bz2 |
- Patch #360605 by Berdir: made CVS HEAD compatible with PHP5.3.
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 71e8e3a16..0971c978b 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -282,7 +282,7 @@ function upload_file_load($files) { /** * Implementation of hook_file_references(). */ -function upload_file_references(&$file) { +function upload_file_references($file) { // If upload.module is still using a file, do not let other modules delete it. $count = db_query('SELECT COUNT(*) FROM {upload} WHERE fid = :fid', array(':fid' => $file->fid))->fetchField(); if ($count) { @@ -294,7 +294,7 @@ function upload_file_references(&$file) { /** * Implementation of hook_file_delete(). */ -function upload_file_delete(&$file) { +function upload_file_delete($file) { // Delete all information associated with the file. db_delete('upload')->condition('fid', $file->fid)->execute(); } @@ -604,7 +604,7 @@ function _upload_form($node) { * * @ingroup themeable */ -function theme_upload_form_current(&$form) { +function theme_upload_form_current($form) { $header = array('', t('Delete'), t('List'), t('Description'), t('Weight'), t('Size')); drupal_add_tabledrag('upload-attachments', 'order', 'sibling', 'upload-weight'); |