Remove application root relative to domain root from $mediaFinder->storagePath (#4055)
This gets added later through the use of Url::to(). Credit to @adsa95. Fixes #4065, fixes #4039
This commit is contained in:
parent
a539a36b30
commit
d5eca59dc6
|
|
@ -73,10 +73,6 @@ class MediaLibrary
|
|||
$this->storageFolder = self::validatePath(Config::get('cms.storage.media.folder', 'media'), true);
|
||||
$this->storagePath = rtrim(Config::get('cms.storage.media.path', '/storage/app/media'), '/');
|
||||
|
||||
if (!starts_with($this->storagePath, ['//', 'http://', 'https://'])) {
|
||||
$this->storagePath = Request::getBasePath() . $this->storagePath;
|
||||
}
|
||||
|
||||
$this->ignoreNames = Config::get('cms.storage.media.ignore', FileDefinitions::get('ignoreFiles'));
|
||||
|
||||
$this->ignorePatterns = Config::get('cms.storage.media.ignorePatterns', ['^\..*']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue