diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 02:13:36 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 02:13:36 +0000 |
commit | db7b497114329dda5f560198884c5bc5fbb3c1a8 (patch) | |
tree | 35ac7546fe14a8dd372e74d823ede01e24424443 /mod/notifications | |
parent | 6307e6af3b4a717011570e71b844c4b1e366fae5 (diff) | |
download | elgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.gz elgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.bz2 |
Fixes #2128 - replaces all uses of set_context() and get_context() in core and plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7215 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications')
-rw-r--r-- | mod/notifications/groups.php | 2 | ||||
-rw-r--r-- | mod/notifications/index.php | 2 | ||||
-rw-r--r-- | mod/notifications/start.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/notifications/groups.php b/mod/notifications/groups.php index baa8757a8..9b176955a 100644 --- a/mod/notifications/groups.php +++ b/mod/notifications/groups.php @@ -15,7 +15,7 @@ gatekeeper(); set_page_owner(get_loggedin_userid()); // Set the context to settings -set_context('settings'); +elgg_set_context('settings'); // Get the form $people = array(); diff --git a/mod/notifications/index.php b/mod/notifications/index.php index 0418e6b1d..209de9cd2 100644 --- a/mod/notifications/index.php +++ b/mod/notifications/index.php @@ -15,7 +15,7 @@ gatekeeper(); set_page_owner(get_loggedin_userid()); // Set the context to settings -set_context('settings'); +elgg_set_context('settings'); // Get the form $people = array(); diff --git a/mod/notifications/start.php b/mod/notifications/start.php index 4d3d2b7ee..d98c475d3 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -61,7 +61,7 @@ function notifications_page_handler($page) { */ function notifications_plugin_pagesetup() { global $CONFIG; - if (get_context() == 'settings') { + if (elgg_get_context() == 'settings') { add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), "pg/notifications/personal"); if (is_plugin_enabled('groups')) { add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), "pg/notifications/group"); |