aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/index.php')
-rw-r--r--mod/profile/index.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/profile/index.php b/mod/profile/index.php
index a2bc3c5ee..365adf383 100644
--- a/mod/profile/index.php
+++ b/mod/profile/index.php
@@ -14,13 +14,17 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
// Get the username
- $username = get_input('username');
+ $username = get_input('username');
+
+ $body = "";
// Try and get the user from the username and set the page body accordingly
if ($user = get_user_by_username($username)) {
$body = elgg_view_entity($user,true);
- $title = $user->name;
+ $title = $user->name;
+
+ $body = elgg_view_layout('widgets',$body);
} else {
@@ -28,9 +32,7 @@
$title = elgg_echo("profile");
}
-
- $body = elgg_view_layout('widgets',$body);
-
+
page_draw($title, $body);
?> \ No newline at end of file