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:
David Murrell 2014-09-15 15:52:32 +12:00
parent 73f5160f4b
commit f8f8387e1c
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}