From 5fc80f94271780b6ff6d1dbba554df35e803ac51 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 24 Nov 2009 06:09:41 +0000 Subject: Bug 430014: Re-write the code hooks system so that it uses modules instead of individual .pl files Patch by Max Kanat-Alexander (module owner) a=mkanat --- Bugzilla/Template.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index c7b8cee52..ce7c2ab1c 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -86,9 +86,9 @@ sub process { my $self = shift; my ($file, $vars) = @_; - Bugzilla::Hook::process("template-before_process", - { vars => $vars, file => $file, - template => $self }); + #Bugzilla::Hook::process('template_before_process', + # { vars => $vars, file => $file, + # template => $self }); return $self->SUPER::process(@_); } @@ -188,7 +188,7 @@ sub quoteUrls { my $tmp; my @hook_regexes; - Bugzilla::Hook::process('bug-format_comment', + Bugzilla::Hook::process('bug_format_comment', { text => \$text, bug => $bug, regexes => \@hook_regexes, comment => $comment }); @@ -793,7 +793,7 @@ sub create { }, }; - Bugzilla::Hook::process('template-before_create', { config => $config }); + Bugzilla::Hook::process('template_before_create', { config => $config }); my $template = $class->new($config) || die("Template creation failed: " . $class->error()); return $template; -- cgit v1.2.3-24-g4f1b