aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/render
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-02-09 14:29:35 +0100
committerArthurHoaro <arthur@hoa.ro>2019-02-09 14:29:35 +0100
commitcb974e47476284d967483f7478e3dcb5a2d974d4 (patch)
treec121e4e10f3ed3ad82b9206f5dbfa5f7a9778f04 /application/render
parent905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff)
downloadShaarli-cb974e47476284d967483f7478e3dcb5a2d974d4.tar.gz
Shaarli-cb974e47476284d967483f7478e3dcb5a2d974d4.tar.zst
Shaarli-cb974e47476284d967483f7478e3dcb5a2d974d4.zip
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
Diffstat (limited to 'application/render')
-rw-r--r--application/render/PageBuilder.php2
1 files changed, 2 insertions, 0 deletions
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
123 $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false)); 123 $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false));
124 $this->tpl->assign('token', $this->token); 124 $this->tpl->assign('token', $this->token);
125 125
126 $this->tpl->assign('language', $this->conf->get('translation.language'));
127
126 if ($this->linkDB !== null) { 128 if ($this->linkDB !== null) {
127 $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); 129 $this->tpl->assign('tags', $this->linkDB->linksCountPerTag());
128 } 130 }