Skip to content
Snippets Groups Projects
Commit 3cfe3110 authored by Moritz Strohm's avatar Moritz Strohm Committed by David Siegfried
Browse files

Fix for BIESt closes #1229

Closes #1229

Merge request studip/studip!742
parent cddce51e
No related branches found
No related tags found
No related merge requests found
...@@ -17,9 +17,11 @@ $getInstalledLanguages = function () { ...@@ -17,9 +17,11 @@ $getInstalledLanguages = function () {
return $languages; return $languages;
}; };
$lang_attr = str_replace('_', '-', $_SESSION['_language']);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html class="no-js"> <html class="no-js" lang="<?= htmlReady($lang_attr) ?>">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title data-original="<?= htmlReady(PageLayout::getTitle()) ?>"> <title data-original="<?= htmlReady(PageLayout::getTitle()) ?>">
......
...@@ -44,9 +44,11 @@ $getInstalledLanguages = function () { ...@@ -44,9 +44,11 @@ $getInstalledLanguages = function () {
return $languages; return $languages;
}; };
$lang_attr = str_replace('_', '-', $_SESSION['_language']);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html class="no-js" lang="<?= htmlReady(strtr($_SESSION['_language'], '_', '-')) ?>"> <html class="no-js" lang="<?= htmlReady($lang_attr) ?>">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title data-original="<?= htmlReady(PageLayout::getTitle()) ?>"> <title data-original="<?= htmlReady(PageLayout::getTitle()) ?>">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment