From 47ca6c017a0e29a7778198cfd0d573420d4a431f Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 1 Jul 2021 11:17:54 +0800 Subject: [PATCH] MDL-71817 calendar: remove year from prev/next links --- calendar/classes/external/month_exporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/classes/external/month_exporter.php b/calendar/classes/external/month_exporter.php index 8a6a94e355f..56dfffb456e 100644 --- a/calendar/classes/external/month_exporter.php +++ b/calendar/classes/external/month_exporter.php @@ -218,10 +218,10 @@ class month_exporter extends exporter { 'date' => (new date_exporter($date))->export($output), 'periodname' => userdate($this->calendar->time, get_string('strftimemonthyear')), 'previousperiod' => (new date_exporter($previousperiod))->export($output), - 'previousperiodname' => userdate($previousperiod[0], get_string('strftimemonthyear')), + 'previousperiodname' => $previousperiod['month'], 'previousperiodlink' => $previousperiodlink->out(false), 'nextperiod' => (new date_exporter($nextperiod))->export($output), - 'nextperiodname' => userdate($nextperiod[0], get_string('strftimemonthyear')), + 'nextperiodname' => $nextperiod['month'], 'nextperiodlink' => $nextperiodlink->out(false), 'larrow' => $output->larrow(), 'rarrow' => $output->rarrow(),