diff options
author | hellekin <hellekin@cepheide.org> | 2013-02-18 21:28:02 -0300 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2013-02-18 21:28:02 -0300 |
commit | b56c888650b1bfc127f9a8314a33a136eb752e66 (patch) | |
tree | de8e99a1d1ff406090ece9c985f33c1b85057e17 /views/default | |
parent | c6bf8d8ab9463722da4e1e0323c3383e08b8924e (diff) | |
download | elgg-b56c888650b1bfc127f9a8314a33a136eb752e66.tar.gz elgg-b56c888650b1bfc127f9a8314a33a136eb752e66.tar.bz2 |
Fix 'headers already sent'
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/page/default.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/views/default/page/default.php b/views/default/page/default.php index a0e6d4037..40ad2c69f 100644 --- a/views/default/page/default.php +++ b/views/default/page/default.php @@ -30,13 +30,11 @@ $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"); - ?> <!DOCTYPE html> <html lang="<?php echo get_current_language(); ?>"> <head> +<meta charset="UTF-8"> <?php echo elgg_view('page/elements/head', $vars); ?> </head> <body> @@ -44,7 +42,7 @@ header("Content-type: text/html; charset=UTF-8"); <div class="elgg-page-messages"> <?php echo $messages; ?> </div> - + <?php if (elgg_is_logged_in()): ?> <header class="elgg-page-topbar"> <div class="elgg-inner"> @@ -52,7 +50,7 @@ header("Content-type: text/html; charset=UTF-8"); </div> </header> <?php endif; ?> - + <header class="elgg-page-header"> <div class="elgg-inner"> <?php echo $header; ?> |