From aa9a9f9f529ebf44fb789c26a8e84ce69a474bf5 Mon Sep 17 00:00:00 2001 From: kabbala Date: Fri, 4 Dec 2020 18:08:23 +0900 Subject: [PATCH] change week(o) to year(Y) change histogram week-month(w-m) to year-month(Y-m) --- syntax/archive.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/syntax/archive.php b/syntax/archive.php index 751a4a6..6500849 100644 --- a/syntax/archive.php +++ b/syntax/archive.php @@ -174,12 +174,12 @@ function _build_alternative_list($start, $end, $entries) { // entry in the right date range? if (($start > $entry['date']) || ($entry['date'] >= $end)) continue; - if ($current_year != date('o',$entry['date'])) { + if ($current_year != date('Y',$entry['date'])) { if ($ul_open) { $list .= '' . DOKU_LF; $ul_open = false; } - $current_year = date('o',$entry['date']); + $current_year = date('Y',$entry['date']); $list .= '

' . $current_year . '

' . DOKU_LF; $current_month = ''; } @@ -188,12 +188,12 @@ function _build_alternative_list($start, $end, $entries) { $list .= '' . DOKU_LF; } $current_month = date('m',$entry['date']); - $list .= '

' . $this->getLang('month_' . $current_month) . '