summaryrefslogtreecommitdiff
path: root/modules/upload/upload.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-06-02 14:21:45 +0000
committerDries Buytaert <dries@buytaert.net>2006-06-02 14:21:45 +0000
commit96862f8511cf2180ac02ef37832363ab69064b1e (patch)
treef916ee08da423515da044b809045259e89d304b8 /modules/upload/upload.module
parent07ca789996fd880bde849519fd8c1eab8c1131b0 (diff)
downloadbrdo-96862f8511cf2180ac02ef37832363ab69064b1e.tar.gz
brdo-96862f8511cf2180ac02ef37832363ab69064b1e.tar.bz2
- Patch #66842 by Heine: use proper variable to show filename.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r--modules/upload/upload.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 98cd8c2fc..5b22a1f96 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -381,8 +381,8 @@ function _upload_validate(&$node) {
form_set_error('upload', t('The selected file %name can not be attached to this post, because the disk quota of %quota has been reached.', array('%name' => theme('placeholder', $file->filename), '%quota' => theme('placeholder', format_size($usersize)))));
$valid = FALSE;
}
- elseif (strlen($node->files[$fid]->filename) > 255) {
- form_set_error('upload', t('The selected file %name can not be attached to this post, because the filename is too long.', array('%name' => theme('placeholder', $munged_filename))));
+ elseif (strlen($file->filename) > 255) {
+ form_set_error('upload', t('The selected file %name can not be attached to this post, because the filename is too long.', array('%name' => theme('placeholder', $file->filename))));
$valid = FALSE;
}