Skip to content

Commit

Permalink
fix fns now in Utilities class
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 2, 2024
1 parent bc48682 commit 8f494f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ini_set('error_reporting', E_ALL);
ini_set("display_errors", 1);

require './vendor/autoload.php';
require 'vendor/autoload.php';

use LiturgicalCalendar\Examples\Php\LitSettings;
use LiturgicalCalendar\Examples\Php\Utilities;
Expand Down Expand Up @@ -190,22 +190,22 @@
$newMonth = true;
$currentMonth = (int) $festivity->date->format('n');
$cm = 0;
countSameMonthEvents($keyindex, $LitCal, $cm);
Utilities::countSameMonthEvents($keyindex, $LitCal, $cm);
}

//Let's check if we have more than one event on the same day, such as optional memorials...
$cc = 0;
countSameDayEvents($keyindex, $LitCal, $cc);
Utilities::countSameDayEvents($keyindex, $LitCal, $cc);
if ($cc > 0) {
for ($ev = 0; $ev <= $cc; $ev++) {
$keyname = $LitCalKeys[$keyindex];
$festivity = $LitCal[$keyname];
buildHTML($festivity, $LitCal, $newMonth, $cc, $cm, $litSettings->Locale, $ev);
Utilities::buildHTML($festivity, $LitCal, $newMonth, $cc, $cm, $litSettings->Locale, $ev);
$keyindex++;
}
$keyindex--;
} else {
buildHTML($festivity, $LitCal, $newMonth, $cc, $cm, $litSettings->Locale, null);
Utilities::buildHTML($festivity, $LitCal, $newMonth, $cc, $cm, $litSettings->Locale, null);
}
}

Expand All @@ -223,6 +223,5 @@
echo '</tbody></table>';
}


?>
</body>

0 comments on commit 8f494f9

Please sign in to comment.