unset year when not in cal-mode

closes #18
This commit is contained in:
onli 2013-10-01 14:55:20 +02:00
parent 5894ac7f4f
commit 54f926a946

View File

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