Created
August 2, 2024 19:01
-
-
Save junaidpv/3272e73422c82ebe187fb7a174f8aa70 to your computer and use it in GitHub Desktop.
A custom patch to specifcally fix the error reported at https://www.drupal.org/project/file_encrypt/issues/3259893 for WWM sites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/EncryptStreamWrapper.php b/src/EncryptStreamWrapper.php | |
index 68b0357..e3e31af 100644 | |
--- a/src/EncryptStreamWrapper.php | |
+++ b/src/EncryptStreamWrapper.php | |
@@ -96,7 +96,7 @@ class EncryptStreamWrapper extends LocalStream { | |
* The base path for encrypt://. | |
*/ | |
public static function basePath() { | |
- return Settings::get('encrypted_file_path', ''); | |
+ return Settings::get('encrypted_file_path', \Drupal::getContainer()->getParameter('site.path') . '/private/files-encrypted'); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment