aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-10 22:18:05 +0000
committermkanat%bugzilla.org <>2009-12-10 22:18:05 +0000
commit59a35402749a8b20db50b810ce29c1479594dced (patch)
tree85f5c1fa1c4043dff77b2da71c0219c9bf2e6105 /post_bug.cgi
parentBug 425668: Make the body classes and other header information show up proper... (diff)
downloadbugzilla-59a35402749a8b20db50b810ce29c1479594dced.tar.gz
bugzilla-59a35402749a8b20db50b810ce29c1479594dced.tar.bz2
bugzilla-59a35402749a8b20db50b810ce29c1479594dced.zip
Bug 526158: Make email_in.pl use Bugzilla::Bug->create to create bugs instead of requiring post_bug.cgi
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi11
1 files changed, 3 insertions, 8 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index ef0f40d4d..749acb492 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -264,13 +264,8 @@ if ($token) {
("createbug:$id", $token));
}
-if (Bugzilla->usage_mode == USAGE_MODE_EMAIL) {
- Bugzilla::BugMail::Send($id, $vars->{'mailrecipients'});
-}
-else {
- print $cgi->header();
- $template->process("bug/create/created.html.tmpl", $vars)
- || ThrowTemplateError($template->error());
-}
+print $cgi->header();
+$template->process("bug/create/created.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
1;