diff --git a/src/Destination/DrupalDirectoryDestination.php b/src/Destination/DrupalDirectoryDestination.php index ad06658a5783dab2ae90b0dfa0397ac033c920d9..97d0c430dc734a6ac5c0293bfce19be4a2ed97ca 100644 --- a/src/Destination/DrupalDirectoryDestination.php +++ b/src/Destination/DrupalDirectoryDestination.php @@ -55,9 +55,9 @@ class DrupalDirectoryDestination extends DirectoryDestination { ['%dir' => $dir] ); } - if (!PrivateStream::basePath() || !file_prepare_directory($dir, FILE_CREATE_DIRECTORY && FILE_MODIFY_PERMISSIONS)) { + if (!file_prepare_directory($dir, FILE_CREATE_DIRECTORY && FILE_MODIFY_PERMISSIONS)) { throw new BackupMigrateException( - "The backup file could not be saved to '%dir' because the directory could not be created or cannot be written to. Please make sure your private files directory is configured and writable by the web server.", + "The backup file could not be saved to '%dir' because the directory could not be created or cannot be written to. Please make sure your private files directory is writable by the web server.", ['%dir' => $dir] ); }