aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-10-19 11:23:52 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-10-19 11:23:52 +0200
commite40bd05afc559335bc9b326f4ae2400043104818 (patch)
tree6dbd25f155a9b73f64b90cbca46f6f64e1ec87bb /actions
parent3b6f9d887fea4a97ae9b948922a8679496862bbf (diff)
downloadelgg-e40bd05afc559335bc9b326f4ae2400043104818.tar.gz
elgg-e40bd05afc559335bc9b326f4ae2400043104818.tar.bz2
fixes personal calendar toggle bug and adds the ability to add any site member to a site event and any group member to a group event
Diffstat (limited to 'actions')
-rw-r--r--actions/event_calendar/toggle_personal_calendar.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/event_calendar/toggle_personal_calendar.php b/actions/event_calendar/toggle_personal_calendar.php
index f2341a91a..977355d78 100644
--- a/actions/event_calendar/toggle_personal_calendar.php
+++ b/actions/event_calendar/toggle_personal_calendar.php
@@ -1,8 +1,9 @@
<?php
elgg_load_library('elgg:event_calendar');
$event_guid = get_input('event_guid',0);
-$user_guid = get_input('user_id',elgg_get_logged_in_user_guid());
+$user_guid = get_input('user_guid',elgg_get_logged_in_user_guid());
$other = get_input('other','');
+error_log("in toggle_personal_calendar: $event_guid, $user_guid, $other");
if ($other) {
$remove_response = elgg_echo('event_calendar:added_to_the_calendar');
$add_response = elgg_echo('event_calendar:removed_from_the_calendar');