aboutsummaryrefslogtreecommitdiff
path: root/pages/settings/index.php
blob: dbc8c87da2cd3a54add8975f2278eda37f565487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Elgg user settings system index
 *
 * @package Elgg
 * @subpackage Core
 */

if (!elgg_get_page_owner_guid()) {
	set_page_owner(get_loggedin_userid());
}

// Make sure we don't open a security hole ...
if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) {
	set_page_owner(get_loggedin_userid());
}

// Forward to the user settings
forward('pg/settings/user/' . elgg_get_page_owner()->username . "/");