Skip to content

Commit

Permalink
fix path to xsd schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 20, 2024
1 parent 117df5c commit 9ebd8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,13 @@ private function validateCalendar(string $calendar, int $year, string $category,
$message->classes = ".calendar-$calendar.json-valid.year-$year";
$this->sendMessage($to, $message);

$validationResult = $xml->schemaValidate(API_BASE_PATH . '/schemas/LiturgicalCalendar.xsd');
$validationResult = $xml->schemaValidate('jsondata/schemas/LiturgicalCalendar.xsd');
if ($validationResult) {
$message = new \stdClass();
$message->type = "success";
$message->text = sprintf(
"The $category of $calendar for the year $year was successfully validated against the Schema %s",
API_BASE_PATH . "/schemas/LiturgicalCalendar.xsd"
"jsondata/schemas/LiturgicalCalendar.xsd"
);
$message->classes = ".calendar-$calendar.schema-valid.year-$year";
$this->sendMessage($to, $message);
Expand Down

0 comments on commit 9ebd8b1

Please sign in to comment.