Skip to content

Commit e10aeab

Browse files
authored
Fix calendar (#2043)
1 parent 352b6a4 commit e10aeab

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

‎phpstan-baseline.neon‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,12 +1482,6 @@ parameters:
14821482
count: 1
14831483
path: public/cached.php
14841484

1485-
-
1486-
message: '#^Constant cal not found\.$#'
1487-
identifier: constant.notFound
1488-
count: 1
1489-
path: public/cal.php
1490-
14911485
-
14921486
message: '#^Function date_for_recur\(\) has no return type specified\.$#'
14931487
identifier: missingType.return
@@ -1560,12 +1554,6 @@ parameters:
15601554
count: 1
15611555
path: public/cal.php
15621556

1563-
-
1564-
message: '#^Function phpdate not found\.$#'
1565-
identifier: function.notFound
1566-
count: 1
1567-
path: public/cal.php
1568-
15691557
-
15701558
message: '#^Function read_event\(\) has no return type specified\.$#'
15711559
identifier: missingType.return
@@ -1599,7 +1587,7 @@ parameters:
15991587
-
16001588
message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#'
16011589
identifier: argument.type
1602-
count: 14
1590+
count: 15
16031591
path: public/cal.php
16041592

16051593
-

‎public/cal.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
// Print out day number and all events for the day
190190
echo '<td><a class="day" href="/cal.php', "?cm=$cm&amp;cd=$i&amp;cy=$cy",
191191
'">',$i,'</a>';
192-
display_events_for_day(cal . phpdate("Y-m-", $bom) . sprintf("%02d", $i), $events);
192+
display_events_for_day(date("Y-m-", $bom) . sprintf("%02d", $i), $events);
193193
echo '</td>';
194194

195195
// Break HTML table row if at end of week

0 commit comments

Comments
 (0)