aboutsummaryrefslogtreecommitdiff
path: root/settings/statistics.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/statistics.php')
-rw-r--r--settings/statistics.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/settings/statistics.php b/settings/statistics.php
index f354168b4..e0d2edbf5 100644
--- a/settings/statistics.php
+++ b/settings/statistics.php
@@ -1,6 +1,6 @@
<?php
/**
- * Elgg user settings functions.
+ * Elgg user statistics.
*
* @package Elgg
* @subpackage Core
@@ -16,8 +16,12 @@ gatekeeper();
// Make sure we don't open a security hole ...
if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) {
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
-// Display main admin menu
-page_draw(elgg_echo("usersettings:statistics"),elgg_view_layout('one_column_with_sidebar', elgg_view_title(elgg_echo("usersettings:statistics")) . elgg_view("usersettings/statistics"))); \ No newline at end of file
+$content = elgg_view_title(elgg_echo("usersettings:statistics"));
+$content .= elgg_view("usersettings/statistics");
+
+$body = elgg_view_layout('one_column_with_sidebar', $content);
+
+page_draw(elgg_echo("usersettings:statistics"), $body);