summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-24 12:08:45 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-24 12:08:45 +0000
commit7324f967a5fe5ea75c5a83cfab5d806493d98d92 (patch)
treea417422972011bb34d04f233b7a60e60bf85956d /modules
parent5083e13522d29f0865144a02f448a084818b2f06 (diff)
downloadbrdo-7324f967a5fe5ea75c5a83cfab5d806493d98d92.tar.gz
brdo-7324f967a5fe5ea75c5a83cfab5d806493d98d92.tar.bz2
- Patch #321283 by drewish: upload module needs to inform uid 1 about allowed extensions.
Diffstat (limited to 'modules')
-rw-r--r--modules/upload/upload.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 8f223ad1a..c4eacc2bd 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -525,9 +525,7 @@ function _upload_form($node) {
$limit_description .= t('Images may not be larger than %resolution. ', array('%resolution' => $limits['resolution']));
}
}
- if ($user->uid != 1) {
- $limit_description .= t('Only files with the following extensions may be uploaded: %extensions. ', array('%extensions' => $limits['extensions']));
- }
+ $limit_description .= t('Only files with the following extensions may be uploaded: %extensions. ', array('%extensions' => $limits['extensions']));
$form['new']['#weight'] = 10;
$form['new']['upload'] = array(