Update src/Module/Help.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
84e62b5293
commit
ba031e4534
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ class Help extends BaseModule
|
||||||
$filename = '';
|
$filename = '';
|
||||||
|
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
$lang = DI::session()->get('language');
|
$lang = DI::session()->get('language', $config->get('system', 'language'));
|
||||||
$lang = $lang ?? $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) {
|
||||||
|
|
Loading…
Reference in a new issue