Commit eda44f6e authored by Byron Jones's avatar Byron Jones

Bug 939844: Don't cache template filters when arguments are supplied

r=LpSolit, a=glob
parent ac6167f3
...@@ -88,7 +88,8 @@ sub filter { ...@@ -88,7 +88,8 @@ sub filter {
my ($self, $name, $args) = @_; my ($self, $name, $args) = @_;
# If we pass an alias for the filter name, the filter code is cached # If we pass an alias for the filter name, the filter code is cached
# instead of looking for it at each call. # instead of looking for it at each call.
$self->SUPER::filter($name, $args, $name); # If the filter has arguments, then we can't cache it.
$self->SUPER::filter($name, $args, $args ? undef : $name);
} }
# We need a DESTROY sub for the same reason that Bugzilla::CGI does. # We need a DESTROY sub for the same reason that Bugzilla::CGI does.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment