Skip to content

Commit

Permalink
Merge pull request #967 from lokonli/fixCal
Browse files Browse the repository at this point in the history
Fix ical, add method 2
  • Loading branch information
lokonli authored Mar 15, 2022
2 parents 5f8c470 + 5cba616 commit 3a2a209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/releasenotes/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Fixes
Code
~~~~

* Calendar: New ical module to parse calendar data. Should solve most calendar issues, especially related to recurring events.
* [Prelim] Calendar: New ical module to parse calendar data. Should solve most calendar issues, especially related to recurring events. Select via ``method:2``

V3.9.3 Beta (9-3-2022)
-----------------------
Expand Down
5 changes: 4 additions & 1 deletion vendor/dashticz/ical/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@ function format_error( $errno, $errstr, $errfile, $errline ) {

try {
if ( $METHOD==0) {
@$res = ical5($ICS, $MAXITEMS);
}
elseif ( $METHOD==2) {
@$res = icaljg($ICS, $MAXITEMS, $HISTORY);
}
else {
@$res = icaljg($ICS, $MAXITEMS, $HISTORY);
@$res = ical7($ICS, $MAXITEMS, $HISTORY);
}
}
catch (exception $e) {
Expand Down

0 comments on commit 3a2a209

Please sign in to comment.