changeset 238:80cbbdc3f14d

Add lang="xx" attribute to HTML tag.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 27 Mar 2018 15:19:00 +0300
parents c7f369ff0fb9
children 2749d9637a44
files mgallery.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Tue Mar 27 15:13:03 2018 +0300
+++ b/mgallery.php	Tue Mar 27 15:19:00 2018 +0300
@@ -142,11 +142,11 @@
 
 function mgPrintPageHeader($pageTitle, $pageClass)
 {
-  global $pageCSS, $pageCharset, $pageUrchin, $pageJSFile;
+  global $pageCSS, $pageCharset, $pageUrchin, $pageJSFile, $pageLang;
 
   echo
     "<!DOCTYPE html>\n".
-    "<html>\n".
+    "<html lang=\"".$pageLang."\">\n".
     "<head>\n".
     "  <meta charset=\"".$pageCharset."\">\n".
     // Setting the viewport makes things break especially with the