Skip to content

Commit

Permalink
MDL-2674 backup always backsup/restores groups regardless of user set…
Browse files Browse the repository at this point in the history
…tings; remerged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Mar 17, 2008
1 parent 7f9bd14 commit e807e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backup/restore_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,15 @@
echo "<td align=\"right\" colspan=\"2\"><b>";
$helplink = helpbutton('grouprestore', get_string('groups'), '', true, false, '', true);
if (empty($CFG->enablegroupings)) {
echo get_string('groups').$helplink.":";
echo '<label for="menurestore_groups">'.get_string ("groups").'</label>'.$helplink;
echo "</b></td><td colspan=\"2\">";
$group_options[RESTORE_GROUPS_NONE] = get_string('no');
$group_options[RESTORE_GROUPS_ONLY] = get_string('yes');
} else {
echo get_string('groupsgroupings', 'group').$helplink.":";
echo '<label for="menurestore_groups">'.get_string ("groupsgroupings").'</label>'.$helplink;
echo "</b></td><td colspan=\"2\">";
$group_options[RESTORE_GROUPS_NONE] = get_string('none');
$group_options[RESTORE_GROUPS_ONLY] = get_string('groups');
$group_options[RESTORE_GROUPINGS_ONLY] = get_string('groupingsonly', 'group');
$group_options[RESTORE_GROUPS_GROUPINGS] = get_string('groupsgroupings', 'group'); //all.

Expand Down
2 changes: 2 additions & 0 deletions backup/restorelib.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php //$Id$
//Functions used in restore

require_once($CFG->libdir.'/gradelib.php');

/**
* Group backup/restore constants, 0.
*/
Expand Down

0 comments on commit e807e47

Please sign in to comment.