Check previews in multibucket fallback folder as the last step and not as first step
public function getFolder(string $name): ISimpleFolder {
- $internalFolder = $this->getInternalFolder($name);
+ $internalFolder = self::getInternalFolder($name);
- if ($this->isMultibucketPreviewDistributionEnabled) {
- try {
- return parent::getFolder('old-multibucket/' . $internalFolder);
- } catch (NotFoundException $e) {
- // not in multibucket fallback
- }
- }
-
try {
return parent::getFolder($internalFolder);
} catch (NotFoundException $e) {