Skip to content

Commit

Permalink
pass locale as option to ApiOptions constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 26, 2024
1 parent 77d0097 commit b8e914b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
echo '<form method="GET" id="ApiOptionsForm">';
echo '<fieldset style="margin-bottom:6px;"><legend>' . dgettext('litexmplphp', 'Customize options for generating the Roman Calendar') . '</legend>';
echo '<table style="width:100%;"><tr>';
$apiOptions = new ApiOptions();
ApiOptions::$locale = $baseLocale;

$apiOptions = new ApiOptions(['locale' => $baseLocale]);
$apiOptions->acceptHeaderInput->hide();
Input::setGlobalWrapper('td');
Input::setGlobalLabelClass('api-option-label');
Expand Down

0 comments on commit b8e914b

Please sign in to comment.