File tree 3 files changed +3
-2
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend
lib/internal/Magento/Framework/Filesystem/Io
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ public function addImage(
397
397
$ this ->_mediaDirectory ->copyFile ($ file , $ destinationFile );
398
398
399
399
$ storageHelper ->saveFile ($ this ->_mediaConfig ->getTmpMediaShortUrl ($ fileName ));
400
- $ this ->_mediaDirectory ->changePermissions ($ destinationFile , DriverInterface::WRITEABLE_DIRECTORY_MODE );
400
+ $ this ->_mediaDirectory ->changePermissions ($ destinationFile , DriverInterface::WRITEABLE_FILE_MODE );
401
401
}
402
402
} catch (\Exception $ e ) {
403
403
throw new LocalizedException (__ ('We couldn \'t move this file: %1. ' , $ e ->getMessage ()));
Original file line number Diff line number Diff line change 7
7
// @codingStandardsIgnoreFile
8
8
9
9
namespace Magento \Framework \Filesystem \Io ;
10
+
10
11
use Magento \Framework \Filesystem \DriverInterface ;
11
12
12
13
/**
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ public function saveReport($reportData)
458
458
}
459
459
460
460
@file_put_contents ($ this ->_reportFile , serialize ($ reportData ));
461
- @chmod ($ this ->_reportFile , DriverInterface::WRITEABLE_DIRECTORY_MODE );
461
+ @chmod ($ this ->_reportFile , DriverInterface::WRITEABLE_FILE_MODE );
462
462
463
463
if (isset ($ reportData ['skin ' ]) && self ::DEFAULT_SKIN != $ reportData ['skin ' ]) {
464
464
$ this ->_setSkin ($ reportData ['skin ' ]);
You can’t perform that action at this time.
0 commit comments