Skip to content

Commit

Permalink
Fixing update_group_button and update_groups_button. They were no lon…
Browse files Browse the repository at this point in the history
…ger calling valid URL's.
  • Loading branch information
mchurch committed Jun 25, 2007
1 parent fc1bdd6 commit 1239139
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/weblib.php
Expand Up @@ -4260,10 +4260,11 @@ function update_group_button($courseid, $groupid) {
if (has_capability('moodle/course:managegroups', get_context_instance(CONTEXT_GROUP, $groupid))) {
$string = get_string('editgroupprofile');

return "<form $CFG->frametarget method=\"get\" action=\"$CFG->wwwroot/group/index.php\">".
return "<form $CFG->frametarget method=\"get\" action=\"$CFG->wwwroot/group/edit.php\">".
'<div>'.
'<input type="hidden" name="id" value="'. $courseid .'" />'.
'<input type="hidden" name="group" value="'. $groupid .'" />'.
'<input type="hidden" name="courseid" value="'. $courseid .'" />'.
'<input type="hidden" name="id" value="'. $groupid .'" />'.
'<input type="hidden" name="grouping" value="-1" />'.
'<input type="hidden" name="edit" value="on" />'.
'<input type="submit" value="'. $string .'" /></div></form>';
}
Expand Down

0 comments on commit 1239139

Please sign in to comment.