]> git.mxchange.org Git - friendica.git/blobdiff - mod/help.php
Fixes:
[friendica.git] / mod / help.php
index ef640737aa1bf3ceb94a78590449d18b8c7c8f77..5db74c15e8f68c9cee6c7e58c49cd0bba8fc1fd9 100644 (file)
@@ -6,13 +6,13 @@
 use Friendica\App;
 use Friendica\Content\Nav;
 use Friendica\Content\Text\Markdown;
+use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 
 function load_doc_file($s)
 {
-       global $lang;
-       if (!isset($lang)) $lang = 'en';
+       $lang = Config::get('system', 'language');
        $b = basename($s);
        $d = dirname($s);
        if (file_exists("$d/$lang/$b")) {
@@ -30,8 +30,6 @@ function help_content(App $a)
 {
        Nav::setSelected('help');
 
-       global $lang;
-
        $text = '';
 
        if ($a->argc > 1) {