aboutsummaryrefslogtreecommitdiff
path: root/mod/invitefriends
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-30 02:12:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-30 02:12:20 +0000
commit6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 (patch)
treecd5e07ce01084ade525dae1b168225638e28ac59 /mod/invitefriends
parent68f09537fcdb4222947a6c8938e4416bcc47e4ec (diff)
downloadelgg-6f59a0482ed182ed3f544ebde84bbcfdcd9b4680.tar.gz
elgg-6f59a0482ed182ed3f544ebde84bbcfdcd9b4680.tar.bz2
Refs #2428 removed some global CONFIG usage in plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7479 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/invitefriends')
-rw-r--r--mod/invitefriends/start.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/invitefriends/start.php b/mod/invitefriends/start.php
index aa08e0583..abba12f20 100644
--- a/mod/invitefriends/start.php
+++ b/mod/invitefriends/start.php
@@ -9,7 +9,6 @@
* Add menu item for invite friends
*/
function invitefriends_pagesetup() {
- global $CONFIG;
if (elgg_get_context() == "friends" ||
elgg_get_context() == "friendsof" ||
elgg_get_context() == "collections") {
@@ -17,5 +16,5 @@ function invitefriends_pagesetup() {
}
}
-elgg_register_action('invitefriends/invite', $CONFIG->pluginspath . 'invitefriends/actions/invite.php');
+elgg_register_action('invitefriends/invite', elgg_get_plugin_path() . 'invitefriends/actions/invite.php');
elgg_register_event_handler('pagesetup', 'system', 'invitefriends_pagesetup');