]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
use correct language in html lang attribute
authorJeroen Dalsem <jdalsem@coldtrick.com>
Thu, 4 Oct 2012 07:27:42 +0000 (09:27 +0200)
committerJeroen Dalsem <jdalsem@coldtrick.com>
Thu, 4 Oct 2012 07:27:42 +0000 (09:27 +0200)
views/default/page/default.php

index 3724bffd86376c9e19303695c0354c7c501d64f0..567494d0c6452872442cff0c80d299f8d17a458f 100644 (file)
@@ -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">