MDL-70752 restore: Fix remote file recovery

This commit is contained in:
Mikhail Golenkov
2021-02-04 19:20:24 +11:00
parent fb9419ec0b
commit f9c1978c5e
+2 -2
View File
@@ -1078,8 +1078,8 @@ abstract class restore_dbops {
$localpath = $filesystem->get_local_path_from_storedfile($storedfile);
$fs->create_file_from_pathname($file, $localpath);
} else if ($filesystem->is_file_readable_remotely_by_storedfile($storedfile)) {
$url = $filesystem->get_remote_path_from_storedfile($storedfile);
$fs->create_file_from_url($file, $url);
$remotepath = $filesystem->get_remote_path_from_storedfile($storedfile);
$fs->create_file_from_pathname($file, $remotepath);
} else if ($filesystem->is_file_readable_locally_by_storedfile($storedfile, true)) {
$localpath = $filesystem->get_local_path_from_storedfile($storedfile, true);
$fs->create_file_from_pathname($file, $localpath);