diff --git a/skin/base.phps b/skin/base.phps index 981c6be..c43c262 100644 --- a/skin/base.phps +++ b/skin/base.phps @@ -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()) diff --git a/skin/main.phps b/skin/main.phps index 6018610..12aacba 100644 --- a/skin/main.phps +++ b/skin/main.phps @@ -189,7 +189,7 @@ return [$html, js_markdownThemeChangeListener()]; function post_other_langs($ctx, $url, $other_langs) { $buf = ''; foreach ($other_langs as $lang) { - $buf .= ' | '.$ctx->lang('blog_read_in_'.$lang).''; + $buf .= ' | '.$ctx->lang('blog_read_in_'.$lang).''; } return $buf; }