From 6eec197b4ad9d396b6c33c5012155608ae4bd961 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 13 Aug 2009 21:32:15 +0000 Subject: Bug 480986: The BMP -> PNG conversion tool for new attachments should be an extension - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/Attachment.pm | 7 ------- Bugzilla/Config/Common.pm | 11 +---------- 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 'Bugzilla/Config') diff --git a/Bugzilla/Config/Attachment.pm b/Bugzilla/Config/Attachment.pm index f22c01d95..3468f084c 100644 --- a/Bugzilla/Config/Attachment.pm +++ b/Bugzilla/Config/Attachment.pm @@ -84,13 +84,6 @@ sub get_param_list { type => 't', default => '0', checker => \&check_numeric - }, - - { - name => 'convert_uncompressed_images', - type => 'b', - default => 0, - checker => \&check_image_converter } ); return @param_list; } diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index b285b3bc9..cb95a2f8d 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -47,7 +47,7 @@ use base qw(Exporter); qw(check_multi check_numeric check_regexp check_url check_group check_sslbase check_priority check_severity check_platform check_opsys check_shadowdb check_urlbase check_webdotbase - check_netmask check_user_verify_class check_image_converter + check_netmask check_user_verify_class check_mail_delivery_method check_notification check_utf8 check_bug_status check_smtp_auth check_theschwartz_available check_maxattachmentsize @@ -293,15 +293,6 @@ sub check_user_verify_class { return ""; } -sub check_image_converter { - my ($value, $hash) = @_; - if ($value == 1){ - eval "require Image::Magick"; - return "Error requiring Image::Magick: '$@'" if $@; - } - return ""; -} - sub check_mail_delivery_method { my $check = check_multi(@_); return $check if $check; -- cgit v1.2.3-24-g4f1b