diff --git a/php/index.php b/php/index.php index d1b109c..07544e4 100644 --- a/php/index.php +++ b/php/index.php @@ -174,8 +174,11 @@ echo '
'; echo '
' . dgettext('litexmplphp', 'Configurations sent in the request') . '
'; -echo 'epiphany: ' . $litSettings->Epiphany . ', ascension: ' . $litSettings->Ascension . ', corpus_christi: ' . $litSettings->CorpusChristi . ', eternal_high_priest: ' . ($litSettings->EternalHighPriest ? 'true' : 'false') . ', locale: ' . $litSettings->Locale; -echo '
year: ' . $litSettings->Year . ', year_type: ' . $litSettings->YearType . ', nation: ' . ($litSettings->NationalCalendar ?? 'null') . ', diocese: ' . ($litSettings->DiocesanCalendar ?? 'null'); +if ($litSettings->NationalCalendar === null && $litSettings->DiocesanCalendar === null) { + echo 'epiphany: ' . $litSettings->Epiphany . ', ascension: ' . $litSettings->Ascension . ', corpus_christi: ' . $litSettings->CorpusChristi . ', eternal_high_priest: ' . ($litSettings->EternalHighPriest ? 'true' : 'false') . ', locale: ' . $litSettings->Locale; + echo '
'; +} +echo 'year: ' . $litSettings->Year . ', year_type: ' . $litSettings->YearType . ', nation: ' . ($litSettings->NationalCalendar ?? 'null') . ', diocese: ' . ($litSettings->DiocesanCalendar ?? 'null'); echo '
'; echo '
' . dgettext('litexmplphp', 'Configurations received in the response') . '
'; echo 'epiphany: ' . ($Settings->epiphany ?? 'null') . ', ascension: ' . ($Settings->ascension ?? 'null') . ', corpus_christi: ' . ($Settings->corpus_christi ?? 'null') . ', eternal_high_priest: ' . ($Settings->eternal_high_priest ? 'true' : 'false') . ', locale: ' . ($Settings->locale ?? 'null');