From e7dcd2c22786188ef6aaebd6caf08c5ba137b3a5 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 19 Apr 2006 08:29:43 +0000 Subject: [PATCH] Show category name when browsing calendar --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 92a1af7..96f5a3d 100644 --- a/index.php +++ b/index.php @@ -197,7 +197,11 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range $serendipity['range'] = array($ts, $te); if ($serendipity['GET']['action'] == 'read') { - $serendipity['head_subtitle'] = sprintf(ENTRIES_FOR, $date); + if ($serendipity['GET']['category']) { + $cInfo = serendipity_fetchCategoryInfo($serendipity['GET']['category']); + $serendipity['head_title'] = $cInfo['category_name']; + } + $serendipity['head_subtitle'] .= sprintf(ENTRIES_FOR, $date); } ob_start(); -- 2.39.5