diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-22 12:04:23 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-22 12:04:23 +0000 |
commit | 4bdfbe72be718a36db2280ab3fa32388f4d5ff34 (patch) | |
tree | 1e1c801e52dd47463f3b854e712c461cb73d3922 /mod/profile | |
parent | d259db5910a6f1825fa6c82e19e5f0694449209c (diff) | |
download | elgg-4bdfbe72be718a36db2280ab3fa32388f4d5ff34.tar.gz elgg-4bdfbe72be718a36db2280ab3fa32388f4d5ff34.tar.bz2 |
Closes #367: Widgets only displayed for found profiles.
git-svn-id: https://code.elgg.org/elgg/trunk@2102 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-rw-r--r-- | mod/profile/index.php | 12 |
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 |