From cb974e47476284d967483f7478e3dcb5a2d974d4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 9 Feb 2019 14:29:35 +0100 Subject: Accessibility: specify the HTML lang attribute The lang is based on the user defined one. If the language is automatic, no language will be specified. Fixes #1216 --- application/render/PageBuilder.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'application/render') diff --git a/application/render/PageBuilder.php b/application/render/PageBuilder.php index 0569b67f..3f86fc26 100644 --- a/application/render/PageBuilder.php +++ b/application/render/PageBuilder.php @@ -123,6 +123,8 @@ class PageBuilder $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false)); $this->tpl->assign('token', $this->token); + $this->tpl->assign('language', $this->conf->get('translation.language')); + if ($this->linkDB !== null) { $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); } -- cgit v1.2.3