Skip to content

Commit

Permalink
MDL-70752 restore: Fix remote file recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
golenkovm committed Feb 4, 2021
1 parent 0f1f18d commit f402415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/util/dbops/restore_dbops.class.php
Expand Up @@ -1078,8 +1078,8 @@ public static function send_files_to_pool($basepath, $restoreid, $component, $fi
$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);
Expand Down

0 comments on commit f402415

Please sign in to comment.