]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 672947: Add 'require Bugzilla::BugMail' in Bugzilla::Bug->_send_bugmail
authorTiago Mello <timello@gmail.com>
Tue, 16 Aug 2011 22:05:53 +0000 (19:05 -0300)
committerTiago Mello <timello@gmail.com>
Tue, 16 Aug 2011 22:05:53 +0000 (19:05 -0300)
and remove unnecessary module imports in process_bug.cgi.
r/a=LpSolit

Bugzilla/Bug.pm
process_bug.cgi

index c9ccf541d36e32c23d57f5f4ec4a636c68168c26..6fdab364554ad2b781323280459ee1ed773911da 100644 (file)
@@ -1217,6 +1217,8 @@ sub send_changes {
 sub _send_bugmail {
     my ($params, $vars) = @_;
 
+    require Bugzilla::BugMail;
+
     my $results = 
         Bugzilla::BugMail::Send($params->{'id'}, $params->{'forced'}, $params);
 
index acb359f6321ec0220bbd905fe9a65456750f0266..382ee8b595f8eb4b86d9b50cf9807ed802a84e57 100755 (executable)
@@ -48,8 +48,6 @@ use lib qw(. lib);
 use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Bug;
-use Bugzilla::BugMail;
-use Bugzilla::Mailer;
 use Bugzilla::User;
 use Bugzilla::Util;
 use Bugzilla::Error;