fix
This commit is contained in:
parent
9ddc847aee
commit
9876139a78
@ -221,7 +221,7 @@ function renderHeader(SkinContext $ctx,
|
||||
bool $show_subtitle): string {
|
||||
$icons = svg();
|
||||
$items = [];
|
||||
$items[] = ['url' => '/articles/'.($articles_lang ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles'];
|
||||
$items[] = ['url' => '/articles/'.($articles_lang && $articles_lang != 'en' ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles'];
|
||||
$items[] = ['url' => '/files/', 'label' => 'files', 'selected' => $section === 'files'];
|
||||
$items[] = ['url' => '/info/', 'label' => 'about', 'selected' => $section === 'about'];
|
||||
if (is_admin())
|
||||
|
@ -189,7 +189,7 @@ return [$html, js_markdownThemeChangeListener()];
|
||||
function post_other_langs($ctx, $url, $other_langs) {
|
||||
$buf = '';
|
||||
foreach ($other_langs as $lang) {
|
||||
$buf .= ' | <a href="'.$url.'?lang='.$lang.'">'.$ctx->lang('blog_read_in_'.$lang).'</a>';
|
||||
$buf .= ' | <a href="'.$url.($lang != 'en' ? '?lang='.$lang : '').'">'.$ctx->lang('blog_read_in_'.$lang).'</a>';
|
||||
}
|
||||
return $buf;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user