Skip to content

Commit

Permalink
reports: remove parameter from url for local theme file
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Oct 14, 2024
1 parent 6db8cfc commit d66cc73
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ sub _read_static_content_file {
$url =~ s|^themes/||gmx;
my $themes_dir = $c->config->{'themes_path'} || $c->config->{'project_root'}.'/themes';
$file = $themes_dir . '/themes-enabled/' . $url;
$file =~ s/\?.*$//gmx;
if(!-e $file && defined $default) {
$url =~ s|^Thruk/|$default/|gmx;
# disabled theme? try available folder
Expand Down

0 comments on commit d66cc73

Please sign in to comment.