diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-30 02:25:22 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-30 02:25:22 +0000 |
commit | caef932790b72de1efa5b8ef2065dd3ca3b9eb5a (patch) | |
tree | 0a829eeabea8a4c5460ff7eda87bb60c4f3f0395 /pages/friends/pickercallback.php | |
parent | 6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 (diff) | |
download | elgg-caef932790b72de1efa5b8ef2065dd3ca3b9eb5a.tar.gz elgg-caef932790b72de1efa5b8ef2065dd3ca3b9eb5a.tar.bz2 |
Refs #2428 removed a few CONFIG uses in core
git-svn-id: http://code.elgg.org/elgg/trunk@7480 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages/friends/pickercallback.php')
-rw-r--r-- | pages/friends/pickercallback.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/friends/pickercallback.php b/pages/friends/pickercallback.php index 00661c2b1..338511708 100644 --- a/pages/friends/pickercallback.php +++ b/pages/friends/pickercallback.php @@ -8,7 +8,8 @@ // Load Elgg engine require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); -global $CONFIG; + +$site_url = elgg_get_site_url(); // Get callback type (list or picker) $type = get_input('type', 'picker'); @@ -45,7 +46,7 @@ switch($type) { 'friendspicker' => $friendspicker, 'formcontents' => elgg_view('friends/forms/collectionfields', array('collection' => get_access_collection($collection))), - 'formtarget' => $CONFIG->wwwroot . 'action/friends/editcollection', + 'formtarget' => $site_url . 'action/friends/editcollection', )); break; } |