summaryrefslogtreecommitdiffstats
path: root/extensions/SecureMail/Config.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-23 21:45:53 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-23 21:45:53 +0200
commitae25abcc31888afd2a5ca47e8d3d64c701155696 (patch)
tree8821a129fa20e90b86378595f0302bd242b769c8 /extensions/SecureMail/Config.pm
parent59fc67aa8f4a4a00037d01107da07da5e82c8127 (diff)
downloadbugzilla-ae25abcc31888afd2a5ca47e8d3d64c701155696.tar.gz
bugzilla-ae25abcc31888afd2a5ca47e8d3d64c701155696.tar.xz
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
Diffstat (limited to 'extensions/SecureMail/Config.pm')
-rw-r--r--extensions/SecureMail/Config.pm46
1 files changed, 18 insertions, 28 deletions
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;