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")) {
{
Nav::setSelected('help');
- global $lang;
-
$text = '';
if ($a->argc > 1) {