From 755947e111d89d6babcd0f070d91c2245e22a809 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 12:07:28 +0000 Subject: Refs #2428 just a few more CONFIG uses left to be replaced git-svn-id: http://code.elgg.org/elgg/trunk@8000 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/profile/start.php') 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; } -- cgit v1.2.3