From d74d76b0730621b09571775902899d7030ca3150 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 5 Apr 2010 16:26:09 -0700 Subject: Bug 556429: Stop sending bugmail from inside the template r=LpSolit, a=LpSolit --- Bugzilla/BugMail.pm | 1 - Bugzilla/Template.pm | 7 ------- 2 files changed, 8 deletions(-) (limited to 'Bugzilla') 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(); }, -- cgit v1.2.3-24-g4f1b