From ec9b5fd81dc74c7f69d221fa529be1c2543a12a0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 21 Jul 2015 12:58:36 +0800 Subject: Bug 1180572 - create attachment_storage parameter --- .../en/default/admin/params/attachment.html.tmpl | 24 ++++++++++------------ template/en/default/attachment/list.html.tmpl | 8 ++------ template/en/default/bug/create/create.html.tmpl | 2 -- template/en/default/global/user-error.html.tmpl | 6 +----- 4 files changed, 14 insertions(+), 26 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 4075374bc..bdd20c676 100644 --- a/template/en/default/admin/params/attachment.html.tmpl +++ b/template/en/default/admin/params/attachment.html.tmpl @@ -57,19 +57,17 @@ _ " (such as 1234.your.domain.com) must point to this same" _ " $terms.Bugzilla instance.", - allow_attachment_deletion => "If this option is on, administrators will be able to delete " _ - "the content of attachments.", + allow_attachment_deletion => + "If this option is on, administrators will be able to delete " _ + "the content of attachments.", - maxattachmentsize => "The maximum size (in kilobytes) of attachments to be stored " _ - "in the database. If a file larger than this size is attached " _ - "to ${terms.abug}, $terms.Bugzilla will look at the " _ - "maxlocalattachment parameter " _ - "to determine if the file can be stored locally on the web server. " _ - "If the file size exceeds both limits, then the attachment is rejected. " _ - "Settings both parameters to 0 will prevent attaching files to ${terms.bugs}.", + maxattachmentsize => + "The maximum size (in kilobytes) of attachments.", - maxlocalattachment => "The maximum size (in megabytes) of attachments to be stored " _ - "locally on the web server. If set to a value lower than the " _ - "maxattachmentsize parameter, " _ - "attachments will never be kept on the local filesystem." } + attachment_storage => + "Where attachment data should be stored. If this value is changed you " _ + "must use scripts/mmigrate-attachments to migrate existing " _ + "attachments.", + + } %] diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 2b0b31584..4aae3abef 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -19,8 +19,6 @@ # Frédéric Buclin #%] -[% RETURN UNLESS attachments.size || Param("maxattachmentsize") || Param("maxlocalattachment") %] -