Merged sesskey fix in social activities block from stable

This commit is contained in:
moodler 2004-11-22 14:44:24 +00:00
parent 31ad9e60b3
commit 35a0379ac2

View File

@ -80,7 +80,7 @@ class CourseBlock_social_activities extends MoodleBlock {
if ($mod->id == $USER->activitycopy) { if ($mod->id == $USER->activitycopy) {
continue; continue;
} }
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'">'. $this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'&amp;sesskey='.$USER->sesskey.'">'.
'<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0" /></a>'; '<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0" /></a>';
$this->content->icons[] = ''; $this->content->icons[] = '';
} }
@ -113,7 +113,7 @@ class CourseBlock_social_activities extends MoodleBlock {
} }
if ($ismoving) { if ($ismoving) {
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'">'. $this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&amp;sesskey='.$USER->sesskey.'">'.
'<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0" /></a>'; '<img height="16" width="80" src="'.$CFG->pixpath.'/movehere.gif" alt="'.$strmovehere.'" border="0" /></a>';
$this->content->icons[] = ''; $this->content->icons[] = '';
} }