File tree 1 file changed +2
-6
lines changed
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,8 @@ public function getImagesJson()
147
147
$ fileHandler = $ mediaDir ->stat ($ this ->_mediaConfig ->getMediaPath ($ image ['file ' ]));
148
148
$ image ['size ' ] = $ fileHandler ['size ' ];
149
149
} catch (FileSystemException $ e ) {
150
- $ staticDir = $ this ->_filesystem ->getDirectoryRead (DirectoryList::STATIC_VIEW );
151
- $ image ['url ' ] = $ this ->getImageHelper ()->getDefaultPlaceholderUrl ('thumbnail ' );
152
- $ fileHandler = $ staticDir ->stat (
153
- $ this ->getAssetRepo ()->createAsset ($ this ->getImageHelper ()->getPlaceholder ('thumbnail ' ))->getPath ()
154
- );
155
- $ image ['size ' ] = $ fileHandler ['size ' ];
150
+ $ image ['url ' ] = $ this ->getImageHelper ()->getDefaultPlaceholderUrl ('small_image ' );
151
+ $ image ['size ' ] = 0 ;
156
152
$ this ->_logger ->warning ($ e );
157
153
}
158
154
}
You can’t perform that action at this time.
0 commit comments