Skip to content

Commit 5838dfb

Browse files
authored
Fix for 2.2.8 and empty post edit page
1 parent 2a1c635 commit 5838dfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Block/Adminhtml/Post/Helper/Form/Gallery/Content.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public function __construct(
5050
$this->imageUploadConfigDataProvider = $imageUploadConfigDataProvider
5151
?: ObjectManager::getInstance()->get(\Magento\Backend\Block\DataProviders\ImageUploadConfig::class);
5252
} catch (\Exception $e) {
53+
try {
54+
/* Workaround for Magento 2.2.8 */
55+
$this->imageUploadConfigDataProvider = ObjectManager::getInstance()->get(\Magento\Backend\Block\DataProviders\UploadConfig::class);
56+
} catch (\Exception $e) {}
5357
}
5458
}
5559

0 commit comments

Comments
 (0)