aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2012-10-09 20:34:02 -0700
committerEvan Winslow <evan@elgg.org>2012-10-09 20:34:02 -0700
commitf0b6ec93e6fea5ee5215887c6f4fca9bad56302e (patch)
treed446947cf2973f7339f5c1f48c550c234498e902 /views
parent766fe8ebbcc600982dddce4d93b15b65a7b8c1fb (diff)
parent9ab591be5e70f5c2c089cfd7dda92a6e2d24908f (diff)
downloadelgg-f0b6ec93e6fea5ee5215887c6f4fca9bad56302e.tar.gz
elgg-f0b6ec93e6fea5ee5215887c6f4fca9bad56302e.tar.bz2
Merge pull request #400 from jdalsem/#4881-correct-use-of-html-language-attribute
Fixes #4881: use correct language in html lang attribute
Diffstat (limited to 'views')
-rw-r--r--views/default/page/default.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/page/default.php b/views/default/page/default.php
index 3724bffd8..567494d0c 100644
--- a/views/default/page/default.php
+++ b/views/default/page/default.php
@@ -33,9 +33,11 @@ $footer = elgg_view('page/elements/footer', $vars);
// Set the content type
header("Content-type: text/html; charset=UTF-8");
+$lang = get_current_language();
+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
<head>
<?php echo elgg_view('page/elements/head', $vars); ?>
</head>
@@ -45,13 +47,13 @@ header("Content-type: text/html; charset=UTF-8");
<?php echo $messages; ?>
</div>
- <?php if (elgg_is_logged_in()): ?>
+ <?php if (elgg_is_logged_in()){ ?>
<div class="elgg-page-topbar">
<div class="elgg-inner">
<?php echo $topbar; ?>
</div>
</div>
- <?php endif; ?>
+ <?php } ?>
<div class="elgg-page-header">
<div class="elgg-inner">