MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS. Merged from 19_STABLE

This commit is contained in:
stronk7 2008-12-11 16:40:09 +00:00
parent 04c5310674
commit b0126ac9da
2 changed files with 4 additions and 4 deletions

View File

@ -301,8 +301,8 @@
$hidden["id"] = $id;
print_string('longtimewarning','admin');
if ($restore->users && !empty($info->mnet_externalusers)
&& $info->mnet_externalusers === 'true') {
if ($restore->users && !empty($info->mnet_remoteusers)
&& $info->mnet_remoteusers === 'true') {
if ($info->original_wwwroot === $CFG->wwwroot) {
print '<p>'.get_string('mnetrestore_extusers','admin').'</p>';
} else {

View File

@ -4966,8 +4966,8 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
case "ORIGINAL_WWWROOT":
$this->info->original_wwwroot = $this->getContents();
break;
case "MNET_EXTERNALUSERS":
$this->info->mnet_externalusers = $this->getContents();
case "MNET_REMOTEUSERS":
$this->info->mnet_remoteusers = $this->getContents();
break;
}
}