Skip to content

Commit

Permalink
avoid using nationalcalendar param for VATICAN
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 22, 2022
1 parent a0e693f commit d804c7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LitCalHealth.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ private function executeValidations() {
private function validateCalendars( array $Calendars, array $Years, string $type, object $result ) : object {
foreach( $Calendars as $Calendar ) {
foreach( $Years as $Year ) {
$req = "?$type=$Calendar&year=$Year";
if( $Calendar === 'VATICAN' ) {
$req = "?year=$Year";
} else {
$req = "?$type=$Calendar&year=$Year";
}
$data = file_get_contents( self::LitCalBaseUrl . $req );
if( $data !== false ) {
$message = new stdClass();
Expand Down

0 comments on commit d804c7e

Please sign in to comment.