diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-04-01 16:45:25 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-04-10 17:40:13 +0200 |
commit | ecbdca8c3f06dd420db6a960c8808615dae6848a (patch) | |
tree | 14fc2b6ae0adbafa8df2e4982b22fe41f0b36d22 /extensions/FlagTypeComment/Extension.pm | |
parent | 7d6ee3486e6a76ed0c96341d184c20ae09de2019 (diff) | |
download | bugzilla-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/FlagTypeComment/Extension.pm')
-rw-r--r-- | extensions/FlagTypeComment/Extension.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/FlagTypeComment/Extension.pm b/extensions/FlagTypeComment/Extension.pm index 34cd4c460..e03b1d9eb 100644 --- a/extensions/FlagTypeComment/Extension.pm +++ b/extensions/FlagTypeComment/Extension.pm @@ -70,6 +70,10 @@ sub db_schema_abstract_schema { # Templates # ############# +sub template_before_process_wants { + return { map { $_ => 1 } FLAGTYPE_COMMENT_TEMPLATES }; +} + sub template_before_process { my ($self, $args) = @_; my ($vars, $file) = @$args{qw(vars file)}; |