From 54f926a9467b6ce37d471fbf3a81018ca6371e03 Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 1 Oct 2013 14:55:20 +0200 Subject: [PATCH] unset year when not in cal-mode closes #18 --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 465155f8..21328ea2 100644 --- a/index.php +++ b/index.php @@ -136,6 +136,9 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range /* We must always *assume* that Year, Month and Day are the first 3 arguments */ list(,$year, $month, $day) = $_args; + if ($year == "archives") { + unset($year); + } $serendipity['GET']['action'] = 'read'; $serendipity['GET']['hidefooter'] = true;