Skip to content

Commit

Permalink
Use right var for language support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Somerville authored and dracos committed Jun 9, 2023
1 parent f92e6b3 commit 5e6268d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/Model/AnnouncementManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ function is_valid_item($item)
{
// used in an array sort to filter out invalid items

// update this when merging with the language aware branch
$current_language = "en";

// set default language
if (isset($item->lang)) {
$language = $item->lang;
Expand Down Expand Up @@ -43,7 +40,7 @@ function is_valid_item($item)
}

return $published &&
$language == $current_language &&
$language == LANGUAGE &&
$start_time < date("Y-m-d\TH:i:s") &&
$end_time > date("Y-m-d\TH:i:s");
}
Expand Down

0 comments on commit 5e6268d

Please sign in to comment.