File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1616use Magento \Backend \Block \Media \Uploader ;
1717use Magento \Framework \View \Element \AbstractBlock ;
1818use Magento \Framework \App \Filesystem \DirectoryList ;
19+ use Magento \Framework \Exception \FileSystemException ;
1920
2021class Content extends \Magento \Backend \Block \Widget
2122{
@@ -145,7 +146,7 @@ public function getImagesJson()
145146 try {
146147 $ fileHandler = $ mediaDir ->stat ($ this ->_mediaConfig ->getMediaPath ($ image ['file ' ]));
147148 $ image ['size ' ] = $ fileHandler ['size ' ];
148- } catch (\ Magento \ Framework \ Exception \ FileSystemException $ e ) {
149+ } catch (FileSystemException $ e ) {
149150 $ staticDir = $ this ->_filesystem ->getDirectoryRead (DirectoryList::STATIC_VIEW );
150151 $ image ['url ' ] = $ this ->getImageHelper ()->getDefaultPlaceholderUrl ('thumbnail ' );
151152 $ fileHandler = $ staticDir ->stat (
You can’t perform that action at this time.
0 commit comments