From 702d430118ec7aaa70de10d30901dd3443875186 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 19 Apr 2010 21:25:01 +0200 Subject: Bug 560215: maxattachmentsize = 0 means that you cannot attach any file to bugs r=mkanat a=LpSolit --- template/en/default/admin/params/attachment.html.tmpl | 5 ++--- template/en/default/attachment/list.html.tmpl | 8 ++++++-- template/en/default/bug/create/create.html.tmpl | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/params/attachment.html.tmpl b/template/en/default/admin/params/attachment.html.tmpl index 879aa65b1..e6f6cb778 100644 --- a/template/en/default/admin/params/attachment.html.tmpl +++ b/template/en/default/admin/params/attachment.html.tmpl @@ -66,9 +66,8 @@ maxattachmentsize => "The maximum size (in kilobytes) of attachments. " _ "$terms.Bugzilla will not accept attachments greater than this number " _ - "of kilobytes in size. To accept attachments of any size " _ - "(subject to the limitations of your server software), set this " _ - "value to zero.", + "of kilobytes in size. Setting this parameter to 0 will prevent " _ + "attaching files to ${terms.bugs}.", maxlocalattachment => "The maximum size (in megabytes) of attachments identified by " _ "the user as 'Big Files' to be stored locally on the webserver. " _ diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 53f20f236..89eef1836 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -19,6 +19,8 @@ # Frédéric Buclin #%] +[% RETURN UNLESS attachments.size || Param("maxattachmentsize") %] + + [% END %] -- cgit v1.2.3-24-g4f1b