From: skodak Date: Mon, 17 Mar 2008 21:33:12 +0000 (+0000) Subject: MDL-2674 backup always backsup/restores groups regardless of user settings; remerged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e807e4735461823cf3268faf1db151e856d43229;p=moodle.git MDL-2674 backup always backsup/restores groups regardless of user settings; remerged from MOODLE_19_STABLE --- diff --git a/backup/restore_form.html b/backup/restore_form.html index 1520db9e59..d1eaae7b7c 100644 --- a/backup/restore_form.html +++ b/backup/restore_form.html @@ -430,14 +430,15 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { echo ""; $helplink = helpbutton('grouprestore', get_string('groups'), '', true, false, '', true); if (empty($CFG->enablegroupings)) { - echo get_string('groups').$helplink.":"; + echo ''.$helplink; echo ""; $group_options[RESTORE_GROUPS_NONE] = get_string('no'); $group_options[RESTORE_GROUPS_ONLY] = get_string('yes'); } else { - echo get_string('groupsgroupings', 'group').$helplink.":"; + echo ''.$helplink; echo ""; $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. diff --git a/backup/restorelib.php b/backup/restorelib.php index 1fefb1b4a8..8a618d5606 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1,6 +1,8 @@ libdir.'/gradelib.php'); + /** * Group backup/restore constants, 0. */