From ba031e4534795ffb13ccaf15869b3f41ae65669e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 16 Nov 2021 07:36:20 +0100 Subject: [PATCH] Update src/Module/Help.php Co-authored-by: Hypolite Petovan --- src/Module/Help.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Module/Help.php b/src/Module/Help.php index f85fd10a7..05cce5cc5 100644 --- a/src/Module/Help.php +++ b/src/Module/Help.php @@ -40,8 +40,7 @@ class Help extends BaseModule $filename = ''; $config = DI::config(); - $lang = DI::session()->get('language'); - $lang = $lang ?? $config->get('system', 'language'); + $lang = DI::session()->get('language', $config->get('system', 'language')); // @TODO: Replace with parameter from router if (DI::args()->getArgc() > 1) {