diff options
Diffstat (limited to 'mod/invitefriends')
-rw-r--r-- | mod/invitefriends/index.php | 2 | ||||
-rw-r--r-- | mod/invitefriends/start.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/invitefriends/index.php b/mod/invitefriends/index.php index 25935565a..4b7637c97 100644 --- a/mod/invitefriends/index.php +++ b/mod/invitefriends/index.php @@ -10,7 +10,7 @@ require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php'); gatekeeper(); -set_context('friends'); +elgg_set_context('friends'); set_page_owner(get_loggedin_userid()); $body = elgg_view('invitefriends/form'); diff --git a/mod/invitefriends/start.php b/mod/invitefriends/start.php index 4b039bac3..19a4c4b55 100644 --- a/mod/invitefriends/start.php +++ b/mod/invitefriends/start.php @@ -10,9 +10,9 @@ */ function invitefriends_pagesetup() { global $CONFIG; - if (get_context() == "friends" || - get_context() == "friendsof" || - get_context() == "collections") { + if (elgg_get_context() == "friends" || + elgg_get_context() == "friendsof" || + elgg_get_context() == "collections") { add_submenu_item(elgg_echo('friends:invite'), "mod/invitefriends/",'invite'); } } |