Skip to content

Commit

Permalink
Set the html lang attribute based on php .
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Sep 27, 2020
1 parent 86f9dcd commit 60e8d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion externals/header.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
}

$get_parms = $_GET;
if (isset($locale)) { $locale_str = substr($locale, 0, 2); } else { $locale_str = "en"; }
?>

<html lang="en">
<html lang="<?php echo $locale_str; ?>">
<head>
<?php
if (!isset($can_utf)) { $can_utf = true; }
Expand Down

0 comments on commit 60e8d5a

Please sign in to comment.