aboutsummaryrefslogtreecommitdiff
path: root/pages/settings/statistics.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/settings/statistics.php')
-rw-r--r--pages/settings/statistics.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/pages/settings/statistics.php b/pages/settings/statistics.php
index 741003308..165c31e8e 100644
--- a/pages/settings/statistics.php
+++ b/pages/settings/statistics.php
@@ -6,7 +6,7 @@
* @subpackage Core
*/
-// Make sure only valid admin users can see this
+// Only logged in users
gatekeeper();
// Make sure we don't open a security hole ...
@@ -14,9 +14,14 @@ if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) {
set_page_owner(get_loggedin_userid());
}
-$content = elgg_view_title(elgg_echo("usersettings:statistics"));
-$content .= elgg_view("usersettings/statistics");
+$title = elgg_echo("usersettings:statistics");
-$body = elgg_view_layout('one_column_with_sidebar', array('content' => $content));
+$content = elgg_view("core/settings/statistics");
-echo elgg_view_page(elgg_echo("usersettings:statistics"), $body);
+$params = array(
+ 'content' => $content,
+ 'title' => $title,
+);
+$body = elgg_view_layout('one_sidebar', array('content' => $content));
+
+echo elgg_view_page($title, $body);