MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS

This commit is contained in:
stronk7
2008-12-11 16:37:37 +00:00
parent 9af88f530b
commit 70cf5492bc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 {
+2 -2
View File
@@ -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;
}
}