Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged sesskey fix from stable
  • Loading branch information
moodler committed Nov 5, 2004
1 parent 29a84fc commit 2038a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calendar/view.php
Expand Up @@ -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;

Expand Down Expand Up @@ -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').'"
Expand Down

0 comments on commit 2038a16

Please sign in to comment.