Skip to content

Commit

Permalink
fix issue #110 undefined variable $lang
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 1, 2022
1 parent feadc83 commit 4e0a597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/LitCalAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1413,10 +1413,10 @@ private function createImmaculateHeart() {
*/
private function handleSaintJaneFrancesDeChantal() {
$StJaneFrancesNewDate = DateTime::createFromFormat( '!j-n-Y', '12-8-' . $this->LitSettings->Year, new DateTimeZone( 'UTC' ) );
$langs = ["LA" => "lt", "ES" => "es"];
$lang = in_array( $this->LitSettings->Locale, array_keys($langs) ) ? $langs[$this->LitSettings->Locale] : "lt";
if ( self::DateIsNotSunday( $StJaneFrancesNewDate ) && $this->Cal->notInSolemnitiesFeastsOrMemorials( $StJaneFrancesNewDate ) ) {
$festivity = $this->Cal->getFestivity( "StJaneFrancesDeChantal" );
$langs = ["LA" => "lt", "ES" => "es"];
$lang = in_array( $this->LitSettings->Locale, array_keys($langs) ) ? $langs[$this->LitSettings->Locale] : "lt";
if( $festivity !== null ) {
$this->Cal->moveFestivityDate( "StJaneFrancesDeChantal", $StJaneFrancesNewDate );
$this->Messages[] = sprintf(
Expand Down

0 comments on commit 4e0a597

Please sign in to comment.