aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
commit755947e111d89d6babcd0f070d91c2245e22a809 (patch)
tree284e62a3f1cfca8f9d23e88680544cde4f5aea79 /mod/profile/start.php
parent949a233076ec18f86e60f90a7a8837cb422664af (diff)
downloadelgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.gz
elgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.bz2
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
Diffstat (limited to 'mod/profile/start.php')
-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;
}