diff options
Diffstat (limited to 'views/default/page/default.php')
-rw-r--r-- | views/default/page/default.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/views/default/page/default.php b/views/default/page/default.php index 491f691f4..aba69aebc 100644 --- a/views/default/page/default.php +++ b/views/default/page/default.php @@ -30,9 +30,14 @@ $header = elgg_view('page/elements/header', $vars); $body = elgg_view('page/elements/body', $vars); $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> -<html lang="<?php echo get_current_language(); ?>"> +<html lang="<?php echo $lang; ?>"> <head> <?php echo elgg_view('page/elements/head', $vars); ?> </head> @@ -41,14 +46,14 @@ $footer = elgg_view('page/elements/footer', $vars); <div class="elgg-page-messages"> <?php echo $messages; ?> </div> - - <?php if (elgg_is_logged_in()): ?> + + <?php if (elgg_is_logged_in()){ ?> <header class="elgg-page-topbar"> <div class="elgg-inner"> <?php echo $topbar; ?> </div> </header> - <?php endif; ?> + <?php } ?> <header class="elgg-page-header"> <div class="elgg-inner"> |