Skip to content

Commit 2f96025

Browse files
author
Ivan Gavryshko
committed
MAGETWO-51927: Setup crons out of memory issue - skipped always_populate_raw_post_data check for
- fixed method name
1 parent f5ff78e commit 2f96025

File tree

1 file changed

+4
-4
lines changed
  • lib/internal/Magento/Framework/File

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/File/Size.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function getFileSizeInMb($fileSize, $precision = 0, $mode = PHP_ROUND_HAL
7979
public function getMaxFileSize()
8080
{
8181
if (self::$_maxFileSize < 0) {
82-
$postMaxSize = $this->getNewDependency()->convertSizeToBytes($this->getPostMaxSize());
83-
$uploadMaxSize = $this->getNewDependency()->convertSizeToBytes($this->getUploadMaxSize());
82+
$postMaxSize = $this->getDataSize()->convertSizeToBytes($this->getPostMaxSize());
83+
$uploadMaxSize = $this->getDataSize()->convertSizeToBytes($this->getUploadMaxSize());
8484
$min = max($postMaxSize, $uploadMaxSize);
8585

8686
if ($postMaxSize > 0) {
@@ -107,7 +107,7 @@ public function getMaxFileSize()
107107
*/
108108
public function convertSizeToInteger($size)
109109
{
110-
return $this->getNewDependency()->convertSizeToBytes($size);
110+
return $this->getDataSize()->convertSizeToBytes($size);
111111
}
112112

113113
/**
@@ -129,7 +129,7 @@ protected function _iniGet($param)
129129
*
130130
* @deprecated
131131
*/
132-
private function getNewDependency()
132+
private function getDataSize()
133133
{
134134
if ($this->dataSize === null) {
135135
$this->dataSize =

0 commit comments

Comments
 (0)