From ecbdca8c3f06dd420db6a960c8808615dae6848a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 1 Apr 2017 10:45:25 -0400 Subject: Bug 1352913 - Extensions must register for template_before_process() We can skip a lot of method calls if extensions must declare what templates they act on. --- extensions/InlineHistory/Extension.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extensions/InlineHistory') diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm index fb4a8f98f..a33168dd6 100644 --- a/extensions/InlineHistory/Extension.pm +++ b/extensions/InlineHistory/Extension.pm @@ -36,6 +36,12 @@ sub template_before_create { }; } +sub template_before_process_wants { + return { + 'bug/edit.html.tmpl' => 1, + } +} + sub template_before_process { my ($self, $args) = @_; my $file = $args->{'file'}; -- cgit v1.2.3-24-g4f1b