]> git.mxchange.org Git - friendica.git/commitdiff
Issue 10983: Use the user's settings for the help language
authorMichael <heluecht@pirati.ca>
Mon, 15 Nov 2021 22:08:51 +0000 (22:08 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 15 Nov 2021 22:08:51 +0000 (22:08 +0000)
src/Module/Help.php

index 219adc797342a9bf81a0edc548a355bdedf6a7ab..f85fd10a73b6143b09e186a506a3556ad3d2a1d8 100644 (file)
@@ -39,10 +39,10 @@ class Help extends BaseModule
                $text = '';
                $filename = '';
 
-               $a = DI::app();
                $config = DI::config();
-               $lang = $config->get('system', 'language');
-
+               $lang = DI::session()->get('language');
+               $lang = $lang ?? $config->get('system', 'language');
+               
                // @TODO: Replace with parameter from router
                if (DI::args()->getArgc() > 1) {
                        $path = '';