From: garvinhicking Date: Wed, 19 Apr 2006 08:29:43 +0000 (+0000) Subject: Show category name when browsing calendar X-Git-Tag: 1.0~42 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e7dcd2c22786188ef6aaebd6caf08c5ba137b3a5;p=s9y.git Show category name when browsing calendar --- 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();