Skip to content

Commit

Permalink
Changed storage.php
Browse files Browse the repository at this point in the history
renamed variable on line 572 & 589, from $keepRation to $keepRatio
  • Loading branch information
MartinAarts authored Aug 23, 2018
1 parent 50f974b commit 8855a66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ public function getThumbnailUrl($filePath, $checkFile = false)
* Create thumbnail for image and save it to thumbnails directory
*
* @param string $source Image path to be resized
* @param bool $keepRation Keep aspect ratio or not
* @param bool $keepRatio Keep aspect ratio or not
* @return bool|string Resized filepath or false if errors were occurred
*/
public function resizeFile($source, $keepRation = true)
public function resizeFile($source, $keepRatio = true)
{
$realPath = $this->_directory->getRelativePath($source);
if (!$this->_directory->isFile($realPath) || !$this->_directory->isExist($realPath)) {
Expand All @@ -586,7 +586,7 @@ public function resizeFile($source, $keepRation = true)
}
$image = $this->_imageFactory->create();
$image->open($source);
$image->keepAspectRatio($keepRation);
$image->keepAspectRatio($keepRatio);
$image->resize($this->_resizeParameters['width'], $this->_resizeParameters['height']);
$dest = $targetDir . '/' . pathinfo($source, PATHINFO_BASENAME);
$image->save($dest);
Expand Down

0 comments on commit 8855a66

Please sign in to comment.