diff options
Diffstat (limited to 'Bugzilla/Quantum/Static.pm')
-rw-r--r-- | Bugzilla/Quantum/Static.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Bugzilla/Quantum/Static.pm b/Bugzilla/Quantum/Static.pm index c01f062a4..6ac803e96 100644 --- a/Bugzilla/Quantum/Static.pm +++ b/Bugzilla/Quantum/Static.pm @@ -11,20 +11,20 @@ use Bugzilla::Constants qw(bz_locations); my $LEGACY_RE = qr{ ^ (?:static/v[0-9]+\.[0-9]+/) ? - ( (?:extensions/[^/]+/web|(?:image|graph|skin|j)s)/.+) + ( (?:extensions/[^/]+/web|(?:image|skin|j|graph)s)/.+) $ }xs; sub file { - my ( $self, $rel ) = @_; + my ($self, $rel) = @_; - if ( my ($legacy_rel) = $rel =~ $LEGACY_RE ) { - local $self->{paths} = [ bz_locations->{cgi_path} ]; - return $self->SUPER::file($legacy_rel); - } - else { - return $self->SUPER::file($rel); - } + if (my ($legacy_rel) = $rel =~ $LEGACY_RE) { + local $self->{paths} = [bz_locations->{cgi_path}]; + return $self->SUPER::file($legacy_rel); + } + else { + return $self->SUPER::file($rel); + } } 1; |