MDL-21704 fixed recent regression
authorPetr Skoda <skodak@moodle.org>
Tue, 23 Feb 2010 16:39:56 +0000 (16:39 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 23 Feb 2010 16:39:56 +0000 (16:39 +0000)
lib/grouplib.php

index fdfa934..3b3629c 100644 (file)
@@ -593,7 +593,7 @@ function groups_print_activity_menu($cm, $urlroot, $return=false, $hideallpartic
         $groupname = reset($groupsmenu);
         $output = $grouplabel.': '.$groupname;
     } else {
         $groupname = reset($groupsmenu);
         $output = $grouplabel.': '.$groupname;
     } else {
-        $select = new single_select($urlroot, 'group', $groupsmenu, $activegroup, null, 'selectgroup');
+        $select = new single_select(new moodle_url($urlroot), 'group', $groupsmenu, $activegroup, null, 'selectgroup');
         $select->label = $grouplabel;
         $output = $OUTPUT->render($select);
     }
         $select->label = $grouplabel;
         $output = $OUTPUT->render($select);
     }