aboutsummaryrefslogtreecommitdiff
path: root/pages/settings/statistics.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 20:36:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 20:36:36 +0000
commitdb787a3ab93da0c2141d33f3058f9dc2f34d6f2a (patch)
treedca419a399cb00f45c227aed7a62993b089e0f27 /pages/settings/statistics.php
parentc2add32bbf281d488deb26343cf059e3347fe525 (diff)
downloadelgg-db787a3ab93da0c2141d33f3058f9dc2f34d6f2a.tar.gz
elgg-db787a3ab93da0c2141d33f3058f9dc2f34d6f2a.tar.bz2
reorganized the settings views and updated the pages to use new layout
git-svn-id: http://code.elgg.org/elgg/trunk@7663 36083f99-b078-4883-b0ff-0f9b5a30f544
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);