Permalink
Browse files

Fix sesskey from calendar entries

  • Loading branch information...
1 parent 579961a commit d6067b0c4354c80adfe6793885369ce9a3ceb294 moodler committed Nov 5, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 calendar/view.php
View
@@ -544,7 +544,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
function calendar_print_event($event) {
- global $CFG, $THEME;
+ global $CFG, $THEME, $USER;
static $strftimetime;
@@ -582,8 +582,8 @@ function calendar_print_event($event) {
$editlink = CALENDAR_URL.'event.php?action=edit&id='.$event->id;
$deletelink = CALENDAR_URL.'event.php?action=delete&id='.$event->id;
} else {
- $editlink = $CFG->wwwroot.'/course/mod.php?update='.$event->cmid.'&return=true';
- $deletelink = $CFG->wwwroot.'/course/mod.php?delete='.$event->cmid;
+ $editlink = $CFG->wwwroot.'/course/mod.php?update='.$event->cmid.'&return=true&sesskey='.$USER->sesskey;
+ $deletelink = $CFG->wwwroot.'/course/mod.php?delete='.$event->cmid.'&sesskey='.$USER->sesskey;;
}
echo ' <a href="'.$editlink.'"><img
src="'.$CFG->pixpath.'/t/edit.gif" alt="'.get_string('tt_editevent', 'calendar').'"

0 comments on commit d6067b0

Please sign in to comment.