Update SquidAnalyzer.pm
Fix broken week link, otherwise request URL looks like this: "GET /squidanalyzer//2014/week28 HTTP/1.1" 404 -
This commit is contained in:
parent
73f5160f4b
commit
f8f8387e1c
|
@ -4604,7 +4604,7 @@ sub _get_calendar
|
|||
my $ww = sprintf("%02d", $w+1);
|
||||
my $week = "<tr><th>$ww</th>";
|
||||
if (-d "$path/week$ww") {
|
||||
$week = "<tr><th><a href=\"$self->{WebUrl}/$year/week$ww\">$ww</a></th>";
|
||||
$week = "<tr><th><a href=\"$prefix/$year/week$ww\">$ww</a></th>";
|
||||
}
|
||||
$para .= $week . join('', @{$weeks_num{$w}}) . "</tr>\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue