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:
Adam Sandström 2019-01-23 08:25:16 +01:00 committed by Luke Towers
parent a539a36b30
commit d5eca59dc6
1 changed files with 0 additions and 4 deletions

View File

@ -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', ['^\..*']);