File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
view/adminhtml/templates/media
Cms/view/adminhtml/templates/browser/content Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function getFileSizeService()
97
97
*
98
98
* @return int
99
99
*/
100
- public function getUploadImageMaxWidth ()
100
+ public function getImageUploadMaxWidth ()
101
101
{
102
102
return $ this ->imageConfig ->getMaxWidth ();
103
103
}
@@ -107,7 +107,7 @@ public function getUploadImageMaxWidth()
107
107
*
108
108
* @return int
109
109
*/
110
- public function getUploadImageMaxHeight ()
110
+ public function getImageUploadMaxHeight ()
111
111
{
112
112
return $ this ->imageConfig ->getMaxHeight ();
113
113
}
Original file line number Diff line number Diff line change 13
13
data-mage-init='{
14
14
"Magento_Backend/js/media-uploader" : {
15
15
"maxFileSize": <?= /* @escapeNotVerified */ $ block ->getFileSizeService ()->getMaxFileSize () ?> ,
16
- "maxWidth":<?= /* @escapeNotVerified */ $ block ->getUploadImageMaxWidth () ?> ,
17
- "maxHeight": <?= /* @escapeNotVerified */ $ block ->getUploadImageMaxHeight () ?>
16
+ "maxWidth":<?= /* @escapeNotVerified */ $ block ->getImageUploadMaxWidth () ?> ,
17
+ "maxHeight": <?= /* @escapeNotVerified */ $ block ->getImageUploadMaxHeight () ?>
18
18
}
19
19
}'
20
20
>
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ require([
101
101
maxFileSize: <?= (int ) $ block ->getFileSizeService ()->getMaxFileSize () ?> * 10
102
102
}, {
103
103
action: 'resize',
104
- maxWidth: <?= (int ) $ block ->getUploadImageMaxWidth () ?> ,
105
- maxHeight: <?= (int ) $ block ->getUploadImageMaxHeight () ?>
104
+ maxWidth: <?= (int ) $ block ->getImageUploadMaxWidth () ?> ,
105
+ maxHeight: <?= (int ) $ block ->getImageUploadMaxHeight () ?>
106
106
}, {
107
107
action: 'save'
108
108
}]
You can’t perform that action at this time.
0 commit comments