MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS
This commit is contained in:
@@ -297,8 +297,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 {
|
||||
|
||||
@@ -4945,8 +4945,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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user