aboutsummaryrefslogtreecommitdiff
path: root/pages/friends/pickercallback.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-30 02:25:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-30 02:25:22 +0000
commitcaef932790b72de1efa5b8ef2065dd3ca3b9eb5a (patch)
tree0a829eeabea8a4c5460ff7eda87bb60c4f3f0395 /pages/friends/pickercallback.php
parent6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 (diff)
downloadelgg-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.php5
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;
}