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