summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2009-03-22 02:53:30 +0000
committerAlvaro Herrera2009-03-22 02:53:30 +0000
commit264974d6491667114968eae6f7167f7d30bb9b4d (patch)
tree12c7e4770c75eae87ddf8be1addf3fd866643cb9
parentc5f4fcda8c38b75ccfbd5adc6844492bc601d93d (diff)
Make weekly archives really work. (There's still a flaw in message pages
though.) git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2441 8f5c7a92-453e-0410-a47f-ad33c8a6b003
-rw-r--r--archives/html/list_index.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/archives/html/list_index.php b/archives/html/list_index.php
index 8041fbc9..7bd43907 100644
--- a/archives/html/list_index.php
+++ b/archives/html/list_index.php
@@ -35,11 +35,14 @@ if ($f) {
$yeartext = "";
else $yeartext = $year;
$tpl->setVariable('year_text', $yeartext);
- $tpl->setVariable('month', $month);
- if (isset($sub))
+ if (isset($sub)) {
$tpl->setVariable('month_text', $months[$month - 1].", week ".$sub);
- else
+ $tpl->setVariable('month', $month."-".$sub);
+ }
+ else {
$tpl->setVariable('month_text', $months[$month - 1]);
+ $tpl->setVariable('month', $month);
+ }
$tpl->parse('month');
$prevyear = $year;
}