Skip to content

Commit

Permalink
ensure we have a baseLocale set
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 8, 2024
1 parent 077ec64 commit 8b27307
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions php/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/calendars");
$directAccess = (basename(__FILE__) === basename($_SERVER['SCRIPT_FILENAME']));

$baseLocale = Locale::getPrimaryLanguage(setlocale(LC_ALL, 0));
$baseLocale = Locale::getPrimaryLanguage(setlocale(LC_ALL, 0) ?? 'en-US');

$calendarSelectNations = new CalendarSelect();
$calendarSelectNations->label(true)->labelText('nation')->labelClass('d-block mb-1')
Expand Down

0 comments on commit 8b27307

Please sign in to comment.