aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/groups.php2
-rw-r--r--mod/notifications/start.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/notifications/groups.php b/mod/notifications/groups.php
index 1c1ad77d2..28f3b9f94 100644
--- a/mod/notifications/groups.php
+++ b/mod/notifications/groups.php
@@ -26,7 +26,7 @@ $form_body = elgg_view('notifications/subscriptions/groupsform',array('groups' =
$body = elgg_view('input/form',array(
'body' => $form_body,
'method' => 'post',
- 'action' => $CONFIG->wwwroot . 'action/notificationsettings/groupsave'
+ 'action' => elgg_get_site_url() . 'action/notificationsettings/groupsave'
));
// Insert it into the correct canvas layout
diff --git a/mod/notifications/start.php b/mod/notifications/start.php
index bdc7f15ff..307cfa936 100644
--- a/mod/notifications/start.php
+++ b/mod/notifications/start.php
@@ -62,9 +62,9 @@ function notifications_page_handler($page) {
function notifications_plugin_pagesetup() {
global $CONFIG;
if (get_context() == 'settings') {
- add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), $CONFIG->wwwroot . "pg/notifications/personal");
+ add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), elgg_get_site_url() . "pg/notifications/personal");
if (is_plugin_enabled('groups')) {
- add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), $CONFIG->wwwroot . "pg/notifications/group");
+ add_submenu_item(elgg_echo('notifications:subscriptions:changesettings:groups'), elgg_get_site_url() . "pg/notifications/group");
}
}
}