]> git.mjollnir.org Git - moodle.git/commitdiff
Merged sesskey fix in social activities block from stable
authormoodler <moodler>
Mon, 22 Nov 2004 14:44:24 +0000 (14:44 +0000)
committermoodler <moodler>
Mon, 22 Nov 2004 14:44:24 +0000 (14:44 +0000)
blocks/social_activities/block_social_activities.php

index e5c562a67c9d231d7f566b2a968f825d25924d56..bb980e634e3c4851a7031ea72c6d9c766f11e058 100644 (file)
@@ -80,7 +80,7 @@ class CourseBlock_social_activities extends MoodleBlock {
                         if ($mod->id == $USER->activitycopy) {
                             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>';
                         $this->content->icons[] = '';
                     }
@@ -113,7 +113,7 @@ class CourseBlock_social_activities extends MoodleBlock {
         }
 
         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>';
             $this->content->icons[] = '';
         }