From 4bdfbe72be718a36db2280ab3fa32388f4d5ff34 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 22 Sep 2008 12:04:23 +0000 Subject: Closes #367: Widgets only displayed for found profiles. git-svn-id: https://code.elgg.org/elgg/trunk@2102 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/index.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mod/profile') 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 -- cgit v1.2.3