Skip to content

Commit

Permalink
Minor naming adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Aug 5, 2018
1 parent 7b4b32f commit 0f63017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Media/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getFileSizeService()
*
* @return int
*/
public function getUploadImageMaxWidth()
public function getImageUploadMaxWidth()
{
return $this->imageConfig->getMaxWidth();
}
Expand All @@ -107,7 +107,7 @@ public function getUploadImageMaxWidth()
*
* @return int
*/
public function getUploadImageMaxHeight()
public function getImageUploadMaxHeight()
{
return $this->imageConfig->getMaxHeight();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
data-mage-init='{
"Magento_Backend/js/media-uploader" : {
"maxFileSize": <?= /* @escapeNotVerified */ $block->getFileSizeService()->getMaxFileSize() ?>,
"maxWidth":<?= /* @escapeNotVerified */ $block->getUploadImageMaxWidth() ?> ,
"maxHeight": <?= /* @escapeNotVerified */ $block->getUploadImageMaxHeight() ?>
"maxWidth":<?= /* @escapeNotVerified */ $block->getImageUploadMaxWidth() ?> ,
"maxHeight": <?= /* @escapeNotVerified */ $block->getImageUploadMaxHeight() ?>
}
}'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ require([
maxFileSize: <?= (int) $block->getFileSizeService()->getMaxFileSize() ?> * 10
}, {
action: 'resize',
maxWidth: <?= (int) $block->getUploadImageMaxWidth() ?> ,
maxHeight: <?= (int) $block->getUploadImageMaxHeight() ?>
maxWidth: <?= (int) $block->getImageUploadMaxWidth() ?> ,
maxHeight: <?= (int) $block->getImageUploadMaxHeight() ?>
}, {
action: 'save'
}]
Expand Down

0 comments on commit 0f63017

Please sign in to comment.