Commit 7324f967 authored by Dries's avatar Dries

- Patch #321283 by drewish: upload module needs to inform uid 1 about allowed extensions.

parent 5083e135
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment