summaryrefslogtreecommitdiffstats
path: root/extensions/OrangeFactor
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-01 16:45:25 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-10 17:40:13 +0200
commitecbdca8c3f06dd420db6a960c8808615dae6848a (patch)
tree14fc2b6ae0adbafa8df2e4982b22fe41f0b36d22 /extensions/OrangeFactor
parent7d6ee3486e6a76ed0c96341d184c20ae09de2019 (diff)
downloadbugzilla-ecbdca8c3f06dd420db6a960c8808615dae6848a.tar.gz
bugzilla-ecbdca8c3f06dd420db6a960c8808615dae6848a.tar.xz
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.
Diffstat (limited to 'extensions/OrangeFactor')
-rw-r--r--extensions/OrangeFactor/Extension.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/OrangeFactor/Extension.pm b/extensions/OrangeFactor/Extension.pm
index ab2f1d749..3225939cc 100644
--- a/extensions/OrangeFactor/Extension.pm
+++ b/extensions/OrangeFactor/Extension.pm
@@ -19,6 +19,15 @@ use Bugzilla::Attachment;
our $VERSION = '1.0';
+sub template_before_process_wants {
+ return {
+ 'bug/show-header.html.tmpl' => 1,
+ 'bug/edit.html.tmpl' => 1,
+ 'bug_modal/header.html.tmpl' => 1,
+ 'bug_modal/edit.html.tmpl' => 1,
+ };
+}
+
sub template_before_process {
my ($self, $args) = @_;
my $file = $args->{'file'};