From ae25abcc31888afd2a5ca47e8d3d64c701155696 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 23 Aug 2012 15:45:53 -0400 Subject: Bug 775275 - Port HTML email support from Bugzilla 4.2 to BMO 4.0 - Added fix for filter bug links issue ported to bmo/4.0 - Removed need to check for 4.2 for HTML::Tree --- extensions/SecureMail/Config.pm | 46 ++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 28 deletions(-) (limited to 'extensions/SecureMail/Config.pm') diff --git a/extensions/SecureMail/Config.pm b/extensions/SecureMail/Config.pm index df7d5d928..5b53ddf67 100644 --- a/extensions/SecureMail/Config.pm +++ b/extensions/SecureMail/Config.pm @@ -22,36 +22,26 @@ package Bugzilla::Extension::SecureMail; use strict; -use Bugzilla::Constants; -use Bugzilla::Install::Util qw(vers_cmp); - use constant NAME => 'SecureMail'; -sub REQUIRED_MODULES { - my $modules = [ - { - package => 'Crypt-OpenPGP', - module => 'Crypt::OpenPGP', - # 1.02 added the ability for new() to take KeyRing objects for the - # PubRing argument. - version => '1.02', - }, - { - package => 'Crypt-SMIME', - module => 'Crypt::SMIME', - version => 0, - }, - ]; - if (vers_cmp(BUGZILLA_VERSION, '4.2') > -1) { - push(@$modules, - { - package => 'HTML-Tree', - module => 'HTML::Tree', - version => 0, - } - ); +use constant REQUIRED_MODULES => [ + { + package => 'Crypt-OpenPGP', + module => 'Crypt::OpenPGP', + # 1.02 added the ability for new() to take KeyRing objects for the + # PubRing argument. + version => '1.02', + }, + { + package => 'Crypt-SMIME', + module => 'Crypt::SMIME', + version => 0, + }, + { + package => 'HTML-Tree', + module => 'HTML::Tree', + version => 0, } - return $modules; -} +]; __PACKAGE__->NAME; -- cgit v1.2.3-24-g4f1b