aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/actions/save.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 17:47:07 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 17:47:07 +0000
commit5356a17ae82982ebe96e91ea309ab89713cf888d (patch)
treec15b8d42a86607b7a62162d28a531d395aaca816 /mod/notifications/actions/save.php
parent697a81f7d240e47e261421a462f3e28a92841a1c (diff)
downloadelgg-5356a17ae82982ebe96e91ea309ab89713cf888d.tar.gz
elgg-5356a17ae82982ebe96e91ea309ab89713cf888d.tar.bz2
Further notification settings changes.
git-svn-id: https://code.elgg.org/elgg/trunk@2658 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/actions/save.php')
-rw-r--r--mod/notifications/actions/save.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/notifications/actions/save.php b/mod/notifications/actions/save.php
index 3e50ffc11..44b341e9b 100644
--- a/mod/notifications/actions/save.php
+++ b/mod/notifications/actions/save.php
@@ -18,6 +18,9 @@
global $NOTIFICATION_HANDLERS;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
$subscriptions[$method] = get_input($method.'subscriptions');
+ $personal[$method] = get_input($method.'personal');
+
+ set_user_notification_setting($_SESSION['user']->guid, $method, ($personal[$method] == '1') ? true : false);
remove_entity_relationships($SESSION['user']->guid,'notify' , $method, false);
}
@@ -25,7 +28,6 @@
foreach($subscriptions as $key => $subscription)
if (is_array($subscription) && !empty($subscription)) {
foreach($subscription as $subscriptionperson) {
- // register_notification_interest($SESSION['user']->guid, $subscription);
add_entity_relationship($_SESSION['user']->guid, 'notify' . $key, $subscriptionperson);
}
}