From 6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 30 Nov 2010 02:12:20 +0000 Subject: Refs #2428 removed some global CONFIG usage in plugins git-svn-id: http://code.elgg.org/elgg/trunk@7479 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/invitefriends/start.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mod/invitefriends/start.php') 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'); -- cgit v1.2.3