1
1
Fork 0

Merge pull request #10986 from annando/issue-10983

Issue 10983: Use the user's settings for the help language
This commit is contained in:
Hypolite Petovan 2021-11-16 06:57:33 -05:00 committed by GitHub
commit 877b90f7f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,9 +39,8 @@ class Help extends BaseModule
$text = ''; $text = '';
$filename = ''; $filename = '';
$a = DI::app();
$config = DI::config(); $config = DI::config();
$lang = $config->get('system', 'language'); $lang = DI::session()->get('language', $config->get('system', 'language'));
// @TODO: Replace with parameter from router // @TODO: Replace with parameter from router
if (DI::args()->getArgc() > 1) { if (DI::args()->getArgc() > 1) {