block/mentees: MDL-20993 - incorrectly assumes SITEID
authorDan Poltawski <dan.poltawski@lancaster.ac.uk>
Wed, 24 Feb 2010 08:46:33 +0000 (08:46 +0000)
committerDan Poltawski <dan.poltawski@lancaster.ac.uk>
Wed, 24 Feb 2010 08:46:33 +0000 (08:46 +0000)
forward ported from MOODLE_19_STABLE

blocks/mentees/block_mentees.php

index 7c4575e..db4ac16 100755 (executable)
@@ -36,7 +36,7 @@ class block_mentees extends block_base {
 
             $this->content->text = '<ul>';
             foreach ($usercontexts as $usercontext) {
-                $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&amp;course=1">'.fullname($usercontext).'</a></li>';
+                $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&amp;course='.SITEID.'">'.fullname($usercontext).'</a></li>';
             }
             $this->content->text .= '</ul>';
         }