aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 06c5dfdc2..2c4a5c84c 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -42,7 +42,6 @@ function profile_init() {
* @param array $page Array of page elements, forwarded by the page handling mechanism
*/
function profile_page_handler($page) {
- global $CONFIG;
if (isset($page[0])) {
$username = $page[0];
@@ -63,7 +62,8 @@ function profile_page_handler($page) {
if ($action == 'edit') {
// use the core profile edit page
- require $CONFIG->path . 'pages/profile/edit.php';
+ $base_dir = elgg_get_root_dir();
+ require "{$base_dir}pages/profile/edit.php";
return;
}