Skip to content

Commit

Permalink
debug setLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 26, 2024
1 parent a704ea8 commit 492ca5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

$litSettings = new LitSettings($_GET, $directAccess);

// debug value of locale that the script was set to
echo '<!-- setLocale: ' . $litSettings->setLocale . ' -->';

$nationalCalendarOptions = '<option value="">---</option>';
$diocesanCalendarOptions = '<option value="">---</option>';

Expand Down
3 changes: 2 additions & 1 deletion php/src/LitSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class LitSettings
public ?string $Locale = null;
public ?string $NationalCalendar = null;
public ?string $DiocesanCalendar = null;
public ?string $setLocale = null;
private ?array $MetaData = null;
private bool $directAccess = false;

Expand Down Expand Up @@ -129,7 +130,7 @@ public function __construct(array $DATA, bool $directAccess = false)
$baseLocale . '.UTF-8',
$baseLocale
];
setlocale(LC_ALL, $localeArray);
$this->setLocale = setlocale(LC_ALL, $localeArray);

$this->directAccess = $directAccess;

Expand Down

0 comments on commit 492ca5d

Please sign in to comment.