diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-06 01:26:09 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-06 01:26:09 +0200 |
commit | d74d76b0730621b09571775902899d7030ca3150 (patch) | |
tree | dfeb8f80dc10cd0e25e0c7ae89f8dd48677db9b6 /Bugzilla | |
parent | 3b351275ab6f8090620234dd2b3ee8a9ef72e599 (diff) | |
download | bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.gz bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.xz |
Bug 556429: Stop sending bugmail from inside the template
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugMail.pm | 1 | ||||
-rw-r--r-- | Bugzilla/Template.pm | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index a4fbfa3d8..ff88dfaa3 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -107,7 +107,6 @@ sub relationships { # roles when the email is sent. # All the names are email addresses, not userids # values are scalars, except for cc, which is a list -# This hash usually comes from the "mailrecipients" var in a template call. sub Send { my ($id, $forced) = (@_); diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 639088984..88bfc1f2d 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -739,13 +739,6 @@ sub create { # started the session. 'sudoer' => sub { return Bugzilla->sudoer; }, - # SendBugMail - sends mail about a bug, using Bugzilla::BugMail.pm - 'SendBugMail' => sub { - my ($id, $mailrecipients) = (@_); - require Bugzilla::BugMail; - Bugzilla::BugMail::Send($id, $mailrecipients); - }, - # Allow templates to access the "corect" URLBase value 'urlbase' => sub { return Bugzilla::Util::correct_urlbase(); }, |