Skip to content

Commit

Permalink
Load the language files within member reader
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Oct 25, 2024
1 parent b59158f commit e82d27e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/FrontendModule/MemberReaderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ protected function getResponse(Template $template, ModuleModel $model, Request $
throw new PageNotFoundException('Page not found: ' . Environment::get('uri'));
}

System::loadLanguageFile('default');
System::loadLanguageFile('tl_member');
System::loadLanguageFile('countries');
System::loadLanguageFile('languages');

// Check for group intersection
$arrGroups = StringUtil::deserialize($model->ext_groups);
$memberGroups = StringUtil::deserialize($member->groups);
Expand Down

0 comments on commit e82d27e

Please sign in to comment.